Entity::data

From RAGE Multiplayer Wiki
Revision as of 20:46, 4 February 2018 by TedJr (talk | contribs)

This property is used to get or set entity data.

Note: Changing this property has the same effect as using entity.setVariable function.

Property Type(s) & Attribute(s)

  • Getter - attribute should be in any format.
  • Setter - attribute should be in any format.

Example(s)

Server-Side

The code below is an example about how to set a entity data by directly manipulating its "data" attribute.

entity.data.foo = bar;