~/docs/tattoo-shop-v2/configuration/limits
tattoo shop v2 docs›
Tattoo shop V2
Limits
-- 6 code blocks · 1 min read
Creation modes
Config.Modes = {
vanilla = true,
image = true,
freehand = true,
}
Config.DefaultMode = 'vanilla'
A mode set to false is hidden in the UI and rejected server-side. The same toggles are available live from the admin studio.
Slots
Custom tattoos (image and freehand) consume streamed overlay slots. Vanilla tattoos consume none.
Config.MaxSlots = 24 -- global custom slots
Config.MaxCustomZones = 3 -- zones a single player can have inked at once
One inked zone takes one global slot. Lowering MaxSlots reduces how many custom tattoos can be visible across the server at the same time.
Texture
Config.TextureDim = 512
Config.TextureGamma = 1.0
Config.TextureDimmust stay at 512. The NUI rasterizer paints at 512, and lowering it divides the definition of every tattoo at commit time.
Anti-abuse limits
Every submit is checked against these caps before any processing. Anything above is rejected outright.
Config.Limits = {
vanilla = 32, -- vanilla overlays per commit
strokes = 256, -- freehand strokes, all zones
points = 512, -- points per stroke
images = 6, -- images on the body at once
imageBytes = 500000, -- one image data URI, in bytes
imageBytesTotal = 1200000, -- total image budget per commit
}
Rate limits
Per player, in milliseconds. Set a value to 0 or nil to disable that one.
Config.RateLimit = {
submit = 1000,
fetch = 500, -- keyed by (source, target)
loadMine = 2000,
}
Aiming
Config.Aim = {
cursor = true, -- paint where the cursor points
arrows = true, -- arrow keys move a reticle for fine adjustment
nudgeStep = 3, -- pixels per arrow tick, in 512 canvas space
}