Entity::getVariable: Difference between revisions
(Created page with "__NOTOC__ '''Function''': Gets a custom data from an entity. ==Syntax== <syntaxhighlight lang="javascript"> value entity.setVariable(name); </syntaxhighlight> ==Example== {...") |
(→Syntax) |
||
| Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
value entity. | value entity.getVariable(name); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 15:56, 22 February 2018
Function: Gets a custom data from an entity.
Syntax
value entity.getVariable(name);
Example
Server-Side
// Supposed you want to get a vehicle you bound with a player
let veh = player.getVariable('veh');