GetPedSkin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Visual improvement)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
{{Deprecated}}
{{DeprecatedWithAlt|getElementModel|}}
 
Please use [[getElementModel]]


This function returns the specified ped's skin.
This function returns the specified ped's skin.

Revision as of 14:25, 25 June 2014

Template:DeprecatedWithAlt

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

Shared