<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SzymonK</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SzymonK"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/SzymonK"/>
	<updated>2026-06-04T15:50:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setVariable&amp;diff=15529</id>
		<title>Entity::setVariable</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setVariable&amp;diff=15529"/>
		<updated>2018-08-15T17:05:52Z</updated>

		<summary type="html">&lt;p&gt;SzymonK: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Function&#039;&#039;&#039;: Sets a custom data into an entity.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
entity.setVariable(name, value);&lt;br /&gt;
&lt;br /&gt;
//best way is JSON object:&lt;br /&gt;
entity.setVariable({name: value});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ServerSide}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Supposed you&#039;re trying to bind a vehicle to a player, you can do this:&lt;br /&gt;
let veh = mp.vehicles.new(vehName, player.position);&lt;br /&gt;
player.setVariable(&#039;veh&#039;, veh);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
player.setVariable({&lt;br /&gt;
  name: &#039;Player&#039;,&lt;br /&gt;
  age: 20&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>SzymonK</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setVariable&amp;diff=15528</id>
		<title>Entity::setVariable</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setVariable&amp;diff=15528"/>
		<updated>2018-08-15T17:04:46Z</updated>

		<summary type="html">&lt;p&gt;SzymonK: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Function&#039;&#039;&#039;: Sets a custom data into an entity.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
entity.setVariable(name, value);&lt;br /&gt;
&lt;br /&gt;
//best way is JSON object:&lt;br /&gt;
entity.setVariable({name: value});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ServerSide}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Supposed you&#039;re trying to bind a vehicle to a player, you can do this:&lt;br /&gt;
let veh = mp.vehicles.new(vehName, player.position);&lt;br /&gt;
player.setVariable(&#039;veh&#039;, veh);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>SzymonK</name></author>
	</entry>
</feed>