Entity::getVariable

From RAGE Multiplayer Wiki
Revision as of 15:56, 22 February 2018 by WampiR (talk | contribs) (→‎Syntax)


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');