Перейти к содержанию

Player::getDecoration

Материал из RAGE MP Wiki Archive
Версия от 21:06, 17 мая 2020; imported>Bonus (Bonus moved page Player::getDecoration s to Player::getDecoration: Remove s)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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