OnPlayerFinishedDownloading

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:07, 4 November 2017
Freaksken (Talk | contribs)
(typo)
← Previous diff
Revision as of 22:05, 10 March 2018
RogerCosta (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{AddedIn|0.3.8||callback}}+{{AddedIn|0.3DL||callback}}
{{Description|1=This callback is called when a player finishes downloading custom models. For more information on how to add custom models to your server, see the [http://forum.sa-mp.com/showthread.php?t=644105 release thread] and [http://forum.sa-mp.com/showthread.php?t=644123 this tutorial].}} {{Description|1=This callback is called when a player finishes downloading custom models. For more information on how to add custom models to your server, see the [http://forum.sa-mp.com/showthread.php?t=644105 release thread] and [http://forum.sa-mp.com/showthread.php?t=644123 this tutorial].}}

Revision as of 22:05, 10 March 2018



This callback was added in SA-MP 0.3DL and will not work in earlier versions!


Description:

This callback is called when a player finishes downloading custom models. For more information on how to add custom models to your server, see the release thread and this tutorial.


Parameters:
(playerid, virtualworld)
playeridThe ID of the player that finished downloading custom models.
virtualworldThe ID of the virtual world the player finished downloading custom models for.


Return Values:

This callback does not handle returns.


Image:32px-Ambox_warning_orange.png

Note

This callback is called every time a player changes virtual worlds, even if there are no custom models present in that world.


Example Usage:

public OnPlayerFinishedDownloading(playerid, virtualworld)
{
    SendClientMessage(playerid, 0xffffffff, "Downloads finished.");
    return 1;
}

Related Callbacks

The following callbacks might be useful as well, as they are related to this callback in one way or another.

Personal tools