Player::getDecoration: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (Bonus moved page Player::getDecoration s to Player::getDecoration: Remove s)
 
(No difference)

Latest revision as of 21:06, 17 May 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