Entity::getVariable

From RAGE Multiplayer Wiki
Revision as of 12:23, 29 December 2017 by Mcfloy (talk | contribs) (Created page with "__NOTOC__ '''Function''': Gets a custom data from an entity. ==Syntax== <syntaxhighlight lang="javascript"> value entity.setVariable(name); </syntaxhighlight> ==Example== {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Function: Gets a custom data from an entity.

Syntax

value entity.setVariable(name);

Example

Server-Side

// Supposed you want to get a vehicle you bound with a player
let veh = player.getVariable('veh');