From Multi Theft Auto: Wiki
Revision as of 09:10, 9 November 2018 by Zver-CR (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 setElementModel instead.

This function changes the skin of a player.


bool setPlayerSkin ( player thePlayer, int skinID )

Required Arguments

  • thePlayer: The player whose model will be changed.
  • skinID: A GTASA player model (skin) ID. See Character Skins.


This example sets you a police skin when you type the command /law.

function enterTheLaw(playerSource)
  if (getPlayerSkin(playerSource) == 280) then
    outputChatBox("You are already in the law!", playerSource)
    setPlayerSkin(playerSource, 280)
    outputChatBox("Welcome to the law, protect the innocents.", playerSource)

addCommandHandler("law", enterTheLaw)

See Also