Entity::data: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 9: Line 9:


== Example ==
== Example ==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
entity.data.foo = bar;
entity.data.foo = bar;
</syntaxhighlight>
</syntaxhighlight>
</div>

Revision as of 20:25, 4 February 2018

This property is used to get or set entity data.

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

Getter

  • any

Setter

  • any

Example

entity.data.foo = bar;