GetPlayerSkin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
This function returns an integer containing the ID number of the selected player's skin.
This function returns an integer containing the ID number of the selected player's skin.


==Syntax==
==Syntax==
int [[getPlayerSkin]] ( [[player]] player )
<syntaxhighlight lang="lua">int getPlayerSkin ( player thePlayer )</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''player''': The [[player]] whose skin you want to retrieve.
*'''player''': The player whose skin you want to retrieve.
 
===Returns===
Returns an [[int]] indicating which skin the player has. See [[player skins]].


==Example==
==Example==
  if ([[spawnPlayer]] ( player, 1000, 1000, 1000, 90, 650 ) )
  <syntaxhighlight lang="lua">if (spawnPlayer ( player, 1000, 1000, 1000, 90, 650 ) )
   [[serverChat]] ( "Player's skin ID is: ", [[getPlayerSkin]] (player) )
   outputChatBox ( ( "Player's skin ID is: ", getPlayerSkin (player) ), player )
  end
  end
</syntaxhighlight>

Revision as of 16:41, 18 May 2006

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 ) )
   outputChatBox ( ( "Player's skin ID is: ", getPlayerSkin (player) ), player )
 end