Events & commands ​
Server events ​
server
Local server events (AddEventHandler), fired with TriggerEvent after the server did the work. ink is an
Ink table.
| Event | Arguments | Fired when |
|---|---|---|
np_tattoos:inked |
src, cid, ink |
A piece was inked: checkout (once per piece), addInk |
np_tattoos:healed |
src, cid, ink |
A piece finished healing |
np_tattoos:removed |
src, cid, id, finished |
A laser session (finished = true on the last one), removeInk, a crew piece removed, temporary ink washed off |
np_tattoos:covered |
src, cid, ink, oldLabel |
A cover-up, or a forced crew cover after the grace period |
np_tattoos:flagged |
src, cid, ink |
A crew piece was flagged because the character left the crew |
np_tattoos:designReviewed |
id, approved, staffName |
Staff approved or rejected a submission |
np_tattoos:marks |
src, targetCid, marks |
An officer looked up a player's marks with /marks |
AddEventHandler('np_tattoos:inked', function(src, cid, ink)
if ink.kind == 'crew' then print(cid, 'got crew ink', ink.label) end
end)
-- MDT: attach the marks to the suspect's profile
AddEventHandler('np_tattoos:marks', function(officer, targetCid, marks)
exports.my_mdt:setMarks(targetCid, marks)
end)
Server → client net events ​
These are internal (TriggerClientEvent from np_tattoos to np_tattoos). Listed so you know what they are; don't
trigger them yourself.
| Event | Arguments | Purpose |
|---|---|---|
np_tattoos:rpc |
id, result |
RPC answers |
np_tattoos:client:ink |
ink, gender |
The player's ink changed; the client re-applies it |
np_tattoos:client:catalogue |
The catalogue changed; an open parlour reloads it | |
np_tattoos:client:notify |
{ type, title, message, icon?, tint? } |
Toast |
np_tattoos:client:openParlour |
parlour payload | Server-side open (kit item, openParlour export) |
np_tattoos:client:openAdmin |
review payload | /inkadmin |
np_tattoos:client:marks |
{ name, marks } |
/marks result |
np_tattoos:client:useItem |
item |
Plays the item animation after a successful use |
Events np_tattoos listens to ​
| Side | Events | Effect |
|---|---|---|
| server | np_character:loaded, np_character:unloaded |
Load / forget the character's ink |
| server | framework login, logout, job and gang change events | See Bridges |
| client | np_character:client:loaded, np_character:loaded / :unloaded, np_character:storeClosed, np_character:client:setAppearance |
Load, reset or re-apply ink |
| client | illenium-appearance:client:reloadSkin / :changeOutfit / :loadJobOutfit, fivem-appearance:client:reloadSkin / :loadAppearance, qb-clothing:client:loadPlayerClothing / :loadOutfit, qb-clothes:client:CreateFirstCharacter, skinchanger:modelLoaded / :loadSkin / :loadClothes, esx_skin:playerRegistered |
Re-apply ink shortly after |
Commands ​
| Command | Side | Description |
|---|---|---|
/inkadmin |
server | Design review panel (Moderation). Needs the np_tattoos.admin permission node (Permissions). Name: Config.Admin.command. In-game only |
/marks [id] |
client | Distinguishing marks of the nearest player within Config.Marks.distance, or of server id id. The server checks the job (Config.Marks.jobs) and the distance. Name: Config.Marks.command |
Logs ​
NpTat.log writes a debug line (with Config.Debug), forwards the entry to np_admin's
audit log (category np_tattoos) while np_admin runs and, when a webhook is set, posts a
Discord embed with the player's name, server id and character id. Events: inked (count, total, mode, shop, designs), removal (piece,
session, price), cover (from, to, price) and audit_<action> for every moderation action (submit, approve,
reject, enable, disable). Set the webhook with the np_tattoos_webhook convar (Installation).