From GT-MP
Jump to: navigation, search
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

This type of event is used for handling code after the onPlayerConnected event has completed, this is the final connection step when you finally spawn.


  • This event will not be called if the server has no additional resources that have been downloaded.
  • This event will be called when all clientside scripts have been downloaded. It does not guarantee, that all HTML, CSS, etc. are also downloaded!


First of all, it should be defined in your Main constructor for it to be called, otherwise it wouldn't be initiated at all!

public Main()
    API.onPlayerFinishedDownload += OnPlayerFinishedDownloadHandler;

Usage example(s)

private void OnPlayerFinishedDownloadHandler(Client player)
    API.sendChatMessageToPlayer(player, "There you go! you've finished downloading all the required files and you've been spawned!");