Player::getDecoration: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This function gets the tattoo (decoration) from a collection specified. == Syntax == <pre> player.getDecoration(Hash collection) </pre> List of Collections = https://github....")
 
No edit summary
Line 3: Line 3:
== Syntax ==
== Syntax ==
<pre>
<pre>
player.getDecoration(Hash collection)
player.getDecoration(Hash collection, Hash hash)
</pre>
</pre>


Line 13: Line 13:
<pre>
<pre>
const
const
decoration = player.getDecoration(4292880523) // aka mpBusiness_overlays (mp.joaat('mpBusiness_overlays'))
decoration = player.getDecoration(4292880523, mp.joaat('FM_Tat_F_004')) // aka mpBusiness_overlays (mp.joaat('mpBusiness_overlays'))
;
;
 
console.log(decoration); // {"collection":598190139,"hash":false}
console.log(decoration);
</pre>
</pre>
}}
}}

Revision as of 07:12, 19 February 2020

This function gets the tattoo (decoration) from a collection specified.

Syntax

player.getDecoration(Hash collection, Hash hash)

List of Collections = https://github.com/root-cause/v-tattoos

Example

This example get ped decoration.

Server-Side
const
	decoration = player.getDecoration(4292880523, mp.joaat('FM_Tat_F_004')) // aka mpBusiness_overlays (mp.joaat('mpBusiness_overlays'))
;
console.log(decoration); // {"collection":598190139,"hash":false}

See also