SetElementModel

From Multi Theft Auto: Wiki
Revision as of 12:23, 28 March 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Server client function}} Sets the model of a given element. This allows you to change the model of a player, a vehicle or an object. ==Syntax== <syntaxhighlight lang="lua"> bool setElementMod...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the model of a given element. This allows you to change the model of a player, a vehicle or an object.

Syntax

bool setElementModel ( element theElement, int model )

Required Arguments

  • theElement: the element you want to change.
  • model: the model ID to set.

Returns

Returns true if successful, false otherwise.

See Also