Catalogue & packs ​
The catalogue is built on the server at start from four sources. Later sources override earlier designs with the same name:
shared/catalogue/*.lua:Config.Catalogueentries, loaded in file order.- JSON packs in
data/, listed inConfig.Packs. - Approved custom designs from the database (
custom_<id>, see Moderation). - Designs added at runtime with
exports.np_tattoos:registerDesign(design).
Every design is sanitised. Invalid ones are skipped with a console warning naming the field
(design … from data/my_pack.json skipped: invalid zone).
Shipped files ​
| File | Content |
|---|---|
00_vanilla.lua |
59 curated GTA Online decorations (multiplayer_overlays, mphipster_overlays, mpbiker_overlays, and one-gender designs from mpbeach_overlays / mpbusiness_overlays), kind shop |
10_prison.lua |
8 crude prison designs, kind prison |
20_temporary.lua |
7 henna and sticker designs, kind temp |
30_crew.lua |
6 crew designs (Ballas, Vagos, Families, The Lost MC, the tattoo job), kind crew |
Remove a file or entries you don't want. Add your own file (for example shared/catalogue/50_myserver.lua); every file
in the folder is loaded.
Design fields ​
Config.Catalogue[#Config.Catalogue + 1] = {
name = 'myserver_rose_arm', -- unique id, [a-z0-9_], up to 64 characters
label = 'Rose Sleeve',
zone = 'ZONE_LEFT_ARM',
collection = 'myserver_overlays',
hashMale = 'MS_Rose_M', hashFemale = 'MS_Rose_F', -- at least one; nil = not for that gender
price = 650,
style = 'traditional',
kind = 'shop', -- 'shop' | 'crew' | 'custom' | 'temp' | 'prison'
glyph = 'feather', -- Font Awesome icon for the card
variants = { color = { hashMale = 'MS_Rose_C_M', hashFemale = 'MS_Rose_C_F', extra = 200 } },
mirror = 'myserver_rose_arm_r',
}
| Field | Default | Description |
|---|---|---|
name |
required | Unique id: lower case letters, digits and _, up to 64 characters |
label |
name |
Display name |
zone |
required | A Config.Zones id |
collection |
required | Decoration collection ([%w_-]) |
hashMale / hashFemale |
one required | Overlay names per freemode gender. A design without a hash for the player's gender is hidden for them |
price |
Config.Ink.defaultPrice |
Price of the black & grey variant, 0 to 10 000 000 |
style |
'traditional' |
A Config.Styles id |
kind |
'shop' |
shop, crew, custom, temp or prison |
glyph |
Font Awesome icon name for the paper-and-ink card | |
image |
Thumbnail URL. Wins over Config.Thumbnails.url |
|
isNew |
false |
New badge |
variants.color |
{ hashMale?, hashFemale?, collection?, extra }: the colour variant, extra added to the price. collection when the colour artwork lives in another collection |
|
mirror |
Name of the matching design on the other side. Unknown names are dropped at build time | |
crew |
{ type = 'gang' | 'job', name, label?, grade? }. Required for kind crew |
|
shops |
all shops | List of shop ids that sell it (still filtered by the shop's kinds) |
days |
Config.Temporary.days |
Temporary designs only: days until it washes off, 1 to 365 |
disabled |
false |
Hidden from every parlour |
Faded is not a field: every design has a faded variant (see Parlours → Variants).
JSON packs ​
Packs use the catalogue.json format of illenium-appearance / fivem-appearance, so packs made for those resources
(or by tattoo pack tools that export it) work as they are. Put the file in data/ and list it:
Config.Packs = { 'example_pack.json' }
FiveM can't list a folder, so every pack must be listed by file name. data/*.json is already in the manifest's
files. The format is a map of zones, or a flat array:
{
"ZONE_TORSO": [
{ "name": "TAT_HIP_PACK_SHARKFIN", "label": "Shark Fin", "hashMale": "FM_Hip_M_Tat_030",
"hashFemale": "FM_Hip_F_Tat_030", "zone": "ZONE_TORSO", "collection": "mphipster_overlays" },
{ "name": "TAT_HIP_PACK_PAPERPLANE", "label": "Paper Plane", "hashMale": "FM_Hip_M_Tat_032",
"hashFemale": "FM_Hip_F_Tat_032", "zone": "ZONE_TORSO", "collection": "mphipster_overlays",
"price": 500, "style": "blackwork", "glyph": "paper-plane", "isNew": true }
]
}
- Names are normalised to lower case with other characters turned into
_(TAT_HIP_PACK_SHARKFIN→tat_hip_pack_sharkfin). Without a name, the male or female hash is used. - A missing
zonefalls back to the map key, a missingpricetoConfig.Ink.defaultPrice, a missingkindtoshop. - All other design fields (
style,glyph,variants,crew,mirror, …) pass through.
The pack's artwork itself (the .ytd and shop_tattoo.meta) must be streamed by a resource of its own, like any
tattoo pack.
registerDesign ​
Add a design at runtime from another resource:
-- server
local ok = exports.np_tattoos:registerDesign({
name = 'event_halloween_eye', label = 'Halloween Eye', zone = 'ZONE_HEAD',
collection = 'mphipster_overlays', hashMale = 'FM_Hip_M_Tat_005', hashFemale = 'FM_Hip_F_Tat_005',
price = 666, style = 'realism', glyph = 'eye', isNew = true,
})
The design goes through the same sanitising (false when invalid), overrides a design with the same name, and survives
catalogue rebuilds (after a moderation approve or toggle). Open parlours reload their catalogue. Registered designs live
in memory: register them again when np_tattoos restarts, for example on onResourceStart.