GetPlayerSkin
From Multi Theft Auto: Wiki
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use getElementModel instead. |
This function returns an integer containing the ID number of the specified player's skin.
Syntax
int getPlayerSkin ( player thePlayer )
Required Arguments
- player: The player whose skin ID you want to retrieve.
Returns
Returns an int indicating which skin the player has. See Character Skins.
Example
Click to collapse [-]
ServerExample 1: This example spawns a player and tells him his skin
-- Spawn a player if ( spawnPlayer ( myPlayer, 1000, 1000, 1000, 90, 650 ) ) then -- Tell the player what skin they've spawned with outputChatBox ( "Your skin ID is: " .. getPlayerSkin ( myPlayer ), myPlayer ) end
Example 2: This example adds a "skin" command in console, which tells the player his/her skin.
function checkSkin ( source, commandName ) outputChatBox ( "Your skin ID is: " .. getPlayerSkin ( source ), source ) end addCommandHandler ( "skin", checkSkin )
Click to collapse [-]
ClientThis example adds a "skin" command in console, which tells the player his/her skin.
function checkSkin ( commandName ) outputChatBox ( "Your skin ID is: " .. getPlayerSkin ( getLocalPlayer() ) ) end addCommandHandler ( "skin", checkSkin )
See Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
FROM VERSION 1.5.7 r19626 ONWARDS
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
FROM VERSION 1.5.7 r19626 ONWARDS
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerMoney
- takePlayerScreenShot