GetPlayerSkin

From Multi Theft Auto: Wiki
Revision as of 16:43, 18 May 2006 by EAi (talk | contribs) (→‎Example)
Jump to navigation Jump to search

This function returns an integer containing the ID number of the selected player's skin.

Syntax

int getPlayerSkin ( player thePlayer )

Required Arguments

  • player: The player whose skin you want to retrieve.

Returns

Returns an int indicating which skin the player has. See player skins.

Example

if (spawnPlayer ( player, 1000, 1000, 1000, 90, 650 ) ) then
	outputChatBox ( ( "Player's skin ID is: ", getPlayerSkin (player) ), player )
end