GetPedSkin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...)
 
m (Changed "DeprecatedWithAlt" template to "Deprecated")
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Server client function}}
{{Deprecated|getElementModel|}}
 
This function returns the specified ped's skin.
This function returns the specified ped's skin.



Latest revision as of 16:36, 13 February 2015

Emblem-important.png 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 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