Distinguishing marks ​
Visible tattoos as short descriptions, for suspect descriptions, police and MDTs.
Sailor Anchor (right arm, colour)
Teardrop (head & neck, faded)
Yard Lightning (left arm, faded, fresh, crude)
Config ​
Config.Marks = { enabled = true, command = 'marks', jobs = { 'police', 'sheriff' }, distance = 5.0 }
| Option | Description |
|---|---|
enabled |
Turns the command and the lookup RPC off when false |
command |
Client command name |
jobs |
Jobs that may use the command: a list (grade 0) or [job] = min grade |
distance |
Max distance to the target in metres |
Which zones count as visible is set per zone with Config.Zones[].visible: head & neck and both arms by default.
Descriptions ​
Each mark is { zone, zoneLabel, label, description }, sorted by zone order. The description is the design label
followed by notes:
| Note | When |
|---|---|
| zone label | always (lower case) |
colour |
colour variant |
faded |
faded variant, or opacity below 0.6 (lasered, swum, prison ink) |
fresh |
still healing |
crude |
prison ink |
/marks ​
/marks checks the nearest player within distance; /marks <server id> a specific player. The server checks the
job and the distance again, then shows the list as a toast titled Marks: <name> (or "No visible tattoos.") and fires
the server event np_tattoos:marks (src, targetCid, marks) for MDTs.
From code ​
-- server: visible marks of an online player (server id) or any character (cid, also offline)
local marks = exports.np_tattoos:getDistinguishingMarks(cid)
for _, m in ipairs(marks) do print(m.description) end
-- every piece, covered zones included
local all = exports.np_tattoos:getDistinguishingMarks(src, { onlyVisible = false })
np_identification ​
If np_identification is started, np_tattoos tries to register itself as its marks provider with
exports.np_identification:setMarksProvider(fn) (inside pcall, also when np_identification starts later).
np_identification has no such export yet, so for now this does nothing. Use getDistinguishingMarks or the
np_tattoos:marks event.