Entity::getVariable

From RAGE Multiplayer Wiki
Revision as of 12:33, 2 December 2019 by Unknown (talk | contribs)


Shared
Function

 JavaScript


Retrieves the custom data from the entity.

JavaScript Syntax

Syntax

entity.getVariable('variableName');

Example

This example will retrieve the data from the variable 'veh' that is assigned to the player

Shared
let veh = player.getVariable('veh');


See More