Entity::getVariable

From RAGE Multiplayer Wiki


Function: Gets a custom data from an entity.

Syntax

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

Example

Server-Side

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