Skip to main content

Guides

Here are various script guides. It explains how to insert it, how to manage the tattoo list and how to add private tattoos. Enjoy the reading.

Getting Started

Extract the downloaded script into the resources folder of the server, and then add the following line to the server.cfg file:

ensure pz-tattoo

Tattoos List

To add your tattoos, you need :

  • to place the .ytd files in the subfolder pz-tattoo\stream
  • update the XML file in pz-tattoo\data with the new tattoo:
<Item>
<uvPos x="0.550000" y="0.630000" />
<scale x="0.170000" y="0.380000" />
<rotation value="0.000000" />
<nameHash>name_hash</nameHash>
<txdHash>name_hash</txdHash>
<txtHash>name_hash</txtHash>
<zone>ZONE_LEFT_ARM</zone>
<type>TYPE_TATTOO</type>
<faction>FM</faction>
<garment>All</garment>
<gender>GENDER_DONTCARE</gender>
<award />
<awardLevel />
</Item>
  • finally, remember to add the tattoo to the AllTattoos.json file. Here's an example:
{
"Collection": "mpheist4_overlays",
"Name": "TAT_H4_021",
"HashNameMale": "MP_Heist4_Tat_021_M",
"HashNameFemale": "MP_Heist4_Tat_021_F",
"Zone": "ZONE_TORSO",
"Price": 500
},

Make sure to replace the placeholders with the appropriate values for your custom tattoo.

How to Add Private Tattoo

To add a private tattoo, you need to:

  • create a new item ( using ox-inventory, file to update ox_inventory\data\items.lua ) as follows:
['tattoo_xxx'] = {
label = 'Tatto Label',
weight = 1
},
  • register the event associated with the item, including the details of the tattoo. It is important to specify the Category as "Private". File to update: ox_inventory\modules\items\client.lua
Item('tattoo_xxx', function(data, slot)
ox_inventory:useItem(data, function(data)
if data then
local tattoo = {
Category = "Private",
Collection = "tattoo_collection",
Name = "tattoo_name", -- name del tattoo
HashNameMale = "tattoo_hash_M", -- name hash male
HashNameFemale = "tattoo_hash_F", -- name hash famale
Zone = "ZONE_BRACCIODX",
Price = "500"
}
TriggerEvent('pz-tattoo:addprivate', tattoo)
end
end)
end)