Entity::getVariable

From RAGE Multiplayer Wiki
Revision as of 22:21, 4 April 2018 by Xabi (talk | contribs) (→‎Example)


Function: Gets a custom data from an entity.

Syntax

value entity.getVariable(name); // Returns null if key 'name' does not exist.

Example

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