GetPedSkin

From Multi Theft Auto: Wiki
Revision as of 18:01, 30 March 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} This function returns the specified ped's skin. ==Syntax== <syntaxhighlight lang="lua">int getPedSkin ( ped thePed )</syntaxhighlight> ===Required Arguments=== *'''thePed''': The pe...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns the specified ped's skin.

Syntax

int getPedSkin ( ped thePed )

Required Arguments

  • thePed: The ped whose skin ID you want to retrieve.

Returns

Returns an int indicating which skin the ped has. See Character Skins.

Example

This example adds a "skin" command in console, which tells the player his/her skin.

function checkSkin ( commandName )
	outputChatBox ( "Your skin ID is: " .. getPedSkin ( getLocalPlayer() ) )
end
addCommandHandler ( "skin", checkSkin )

See Also