GetPedSkin

From Multi Theft Auto: Wiki
Revision as of 15:06, 1 October 2009 by Sebassje (talk | contribs)
Jump to navigation Jump to search

Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does.

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