Entity::model: Difference between revisions
(Fixed incorrect colours on example) |
|||
| Line 1: | Line 1: | ||
This property | This property is used for setting or getting an entity's model. | ||
==Getter== | ==Getter== | ||
| Line 14: | Line 14: | ||
player.model = mp.joaat('player_zero'); | player.model = mp.joaat('player_zero'); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | |||
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;"> | |||
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div> | <div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div> | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
Revision as of 10:01, 20 September 2017
This property is used for setting or getting an entity's model.
Getter
- Number
Setter
- Number
Example
Server-Side
const model = player.model;
console.log(model) // return e.g. 867126926
player.model = mp.joaat('player_zero');
Client-Side
const model = player.model;
alert(model) // return e.g. 867126926
player.model = mp.game.joaat('player_zero');