SetPlayerSkin: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 18: | Line 18: | ||
==See Also== | ==See Also== | ||
{{IDs}} |
Revision as of 19:45, 20 May 2006
Changes the model (skin) of a player
Syntax
bool setPlayerSkin ( element player, int id )
Required Arguments
- Player: Refers to a player whos model (skin) ID will be changed.
- ID:: A GTASA player model (skin) ID. Link below to all valid GTASA model (skin) IDs.
Example
Explain what the example does here
root = getRootElement () addEventHandler ( "onSpawnpointUse", root, "onSpawnpointUse" ) function onSpawnpointUse ( player ) --When a player uses a map's spawnpoint setPlayerSkin ( player, randInt ( 10, 100 ) ) --Set the joined player's skin to a random number between 10 and 100 end
See Also
GTASA IDs (vehicles, weapons, weathers, characters, colors): http://info.vces.net/ (Special thanks to Brophy and Ratt for making these lists)