Entity::getVariable

From RAGE Multiplayer Wiki
Jump to: navigation, search

Retrieves the custom data from the entity.

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