Configuration ​
Everything is in shared/config.lua. Designs live in shared/catalogue/*.lua and optional JSON packs in data/
(see Catalogue & packs). The config is shared (client and server), so keep secrets out of it. The
webhook goes in server.cfg (Installation).
General ​
| Option | Default | Description |
|---|---|---|
Config.Framework |
'auto' |
'qbx', 'qb', 'esx', 'standalone', or auto-detect (qbx_core → qb-core → es_extended → standalone) |
Config.Inventory |
'auto' |
'ox' (also np_inventory), 'qb', 'esx', 'none', or auto-detect |
Config.Locale |
'en' |
Server and UI language ('en', 'de') |
Config.Debug |
false |
Debug output: bridge selection, log lines, target zone debug |
Config.AutoCreateTables |
true |
Run the statements of sql/np_tattoos.sql at start |
Config.Material |
nil |
nil follows the server theme from np_admin. 'frosted' or 'liquid' (Liquid Glass) wins over it |
Config.Scale |
nil |
UI scale override. nil scales with the screen height |
Config.Currency |
'$' |
Currency symbol in prices and toasts |
Config.StandaloneMoney |
0 |
Standalone only: the cash and bank balance the parlour shows. Payments always succeed |
Config.Payments |
'auto' |
Parlour charges through the np_payments checkout: 'auto' while np_payments runs, true required, false never. See Parlours → np_payments |
Zones ​
Config.Zones = {
{ id = 'ZONE_HEAD', label = 'Head & neck', icon = 'face-smile', max = 6, visible = true, camera = 'head', undress = false },
{ id = 'ZONE_TORSO', label = 'Torso & back', icon = 'shirt', max = 16, visible = false, camera = 'torso', undress = true },
{ id = 'ZONE_LEFT_ARM', label = 'Left arm', icon = 'hand', max = 12, visible = true, camera = 'arm_l', undress = true },
{ id = 'ZONE_RIGHT_ARM', label = 'Right arm', icon = 'hand', max = 12, visible = true, camera = 'arm_r', undress = true },
{ id = 'ZONE_LEFT_LEG', label = 'Left leg', icon = 'socks', max = 8, visible = false, camera = 'leg_l', undress = true },
{ id = 'ZONE_RIGHT_LEG', label = 'Right leg', icon = 'socks', max = 8, visible = false, camera = 'leg_r', undress = true },
}
| Field | Description |
|---|---|
id |
GTA decoration zone. These six ids are fixed; you can change everything else |
label / icon |
Zone rail text and Font Awesome icon |
max |
Pieces per zone. Checkout fails with "No room left on …" when full |
visible |
Listed as a distinguishing mark |
camera |
Camera preset: head, torso, arm_l, arm_r, leg_l, leg_r (or body) |
undress |
Take off the clothing of that zone while it's shown (see Config.Undress) |
Styles and ink ​
Config.Styles = {
{ id = 'traditional', label = 'Traditional' }, { id = 'blackwork', label = 'Blackwork' },
{ id = 'script', label = 'Script' }, { id = 'japanese', label = 'Japanese' },
{ id = 'tribal', label = 'Tribal' }, { id = 'realism', label = 'Realism' }, { id = 'crude', label = 'Crude' },
}
Config.Ink = { stacks = 10, defaultPrice = 300, fadedOpacity = 0.55, fadedPriceMul = 0.8, accounts = { 'cash', 'bank' } }
Config.Thumbnails = { url = nil }
| Option | Description |
|---|---|
Styles |
The style chips in the catalogue. A design with an unknown style becomes traditional |
Ink.stacks |
GTA has no decoration opacity. A piece with opacity o is applied max(1, round(o × stacks)) times, like illenium-appearance does. Fading, removal and prison ink just lower the opacity |
Ink.defaultPrice |
Price for designs without one (JSON packs) |
Ink.fadedOpacity / fadedPriceMul |
The faded variant: same hash at this opacity, for the black & grey price × this factor |
Ink.accounts |
Accounts the player can pay from ('cash', 'bank') |
Thumbnails.url |
Image URL template, {name} = design name. nil shows a paper-and-ink card with the design's glyph |
Shops ​
local ALL_KINDS = { 'shop', 'crew', 'custom', 'temp' }
local ALL_TABS = { 'flash', 'temp', 'cover', 'removal', 'submit' }
Config.Shops = {
{ id = 'vespucci', label = 'The Pit', sub = 'Vespucci Canals', coords = vec4(-1153.6, -1425.6, 4.95, 30.0),
radius = 6.0, blip = { sprite = 75, color = 1 }, kinds = ALL_KINDS, society = nil, tabs = ALL_TABS },
-- vinewood, chumash, sandy, paleto, elburro
}
Config.Interact = { key = 38, target = 'auto', radius = 1.5, distance = 2.5 }
| Field | Description |
|---|---|
id |
Unique id ([%w_-]), used by openParlour and design shops lists |
label / sub |
Title and subtitle in the parlour |
coords |
Where the target zone or prompt sits. w is not used |
radius |
The player must stay within radius + 5 m. The server checks it on every parlour action, and the client closes the parlour when the player walks away |
blip |
{ sprite, color, scale?, label? }, or false for no blip |
kinds |
Design kinds sold here: shop, crew, custom, temp. Prison designs are never sold in shops |
society |
Optional account that receives the money (see Bridges → Society money). With np_payments it is the payee of the checkout |
tabs |
Parlour tabs: flash, temp, cover, removal, submit. Tabs of disabled features, temp without the temp kind, and submit for players who can't submit are dropped |
| Interact | Description |
|---|---|
target |
'auto' (ox_target, then qb-target, else the prompt), 'ox', 'qb' or 'prompt' |
radius |
Size of the target sphere |
distance |
How close the player must be for the target option or the [E] prompt |
key |
Control for the prompt (38 = E) |
Clothing, pose and item animations ​
Config.Undress = {
m = { head = { props = { 0, 1 } }, torso = { [11] = { 15, 0 }, [8] = { 15, 0 }, [3] = { 15, 0 } }, legs = { [4] = { 21, 0 }, [6] = { 34, 0 } } },
f = { head = { props = { 0, 1 } }, torso = { [11] = { 15, 0 }, [8] = { 14, 0 }, [3] = { 15, 0 } }, legs = { [4] = { 15, 0 }, [6] = { 35, 0 } } },
}
Config.Pose = nil
Config.ItemAnims = {}
| Option | Description |
|---|---|
Undress[gender].torso / .legs |
[component] = { drawable, texture } set while a torso / arm or leg zone is shown. The outfit is restored on close |
Undress[gender].head.props |
Props cleared for the head zone (0 = hat, 1 = glasses). Only used when ZONE_HEAD has undress = true, which is off by default |
Pose |
The arms-out pose: one { dict, clip, flag } or a list tried in order. nil = a yoga pose with arms out, hands up as a fallback |
ItemAnims |
[item] = { dict, clip, flag?, duration? } (ms) to replace the built-in item use animations |
Feature switches ​
Each feature has its own table. They are documented on their pages:
| Table | Page |
|---|---|
Config.Healing |
Healing & aftercare |
Config.Removal, Config.Cover |
Removal & cover-ups |
Config.Crew, Config.Prison, Config.Temporary |
Crew, prison & temporary ink |
Config.Moderation, Config.Admin |
Moderation |
Config.Marks |
Distinguishing marks |
Config.Catalogue, Config.Packs |
Catalogue & packs |
Logs and limits ​
Config.Logs = { webhook = '' }
Config.RateLimit = { perSecond = 15, burst = 30, maxPayload = 32768 }
| Option | Description |
|---|---|
Logs.webhook |
Discord webhook. The np_tattoos_webhook convar wins; keep the URL in server.cfg |
RateLimit.perSecond / burst |
Token bucket per player over every RPC |
RateLimit.maxPayload |
Max approximate JSON size of one RPC payload in bytes |
Each RPC also has its own rate limit (for example three checkouts per three seconds).
Editable in np_admin ​
While np_admin runs, staff can change part of the config live under Resource settings →
Tattoos (shared/np_admin_settings.lua). shared/config.lua stays the default; np_admin stores only the overrides.
Without np_admin nothing changes.
| Category | Fields |
|---|---|
| General | Default language, material, debug, currency symbol, standalone balance shown |
| Ink | Ink.defaultPrice, faded variant opacity and price factor |
| Healing | Healing on / off, healing time, ointment factor, swimming fades fresh ink, fade per swim, min opacity, fresh ink effect |
| Removal & cover-up | Laser removal on / off, sessions per piece, price per session, cooldown; cover-ups on / off and price factor |
| Crew ink | When a member leaves, grace days, after the grace time, flagged cover-up price, removal clears the flag |
| Prison & temporary | Prison ink on / off, prison ink needs jail, temporary ink on / off, temporary ink duration |
| Moderation | Custom design submissions on / off, pending designs per player, distinguishing marks on / off and distance |
| Logs | Discord webhook (secret; the np_tattoos_webhook convar still wins) |
Most fields apply live. Language, material and currency symbol reach the UI when it initialises (the player's next
connect). Healing.enabled, Prison.enabled and Temporary.enabled need a restart, because the usable items are
registered once at start.