Items ​
| Item | What for | Needed with |
|---|---|---|
gang_bandana |
The bandana. Metadata: gang, colour, print. Using it puts it on / takes it off | An item inventory |
spray_can |
One per tag / paint-over (Config.Graffiti.item, false = none needed) |
An item inventory |
lester_note |
Lester's note: did the board change since your last visit (Config.Lester.intel) |
Optional |
black_money |
Dirty cash (Config.DirtyMoney.item). ESX uses its black_money account when the inventory has no item |
Buy-ins, fees, protection |
| Shop items | What the protected shops sell (Config.Protection.store.items: water, bread, lighter, beer, whiskey, plastic_bag, duffel_bag, lockpick, phone) |
np_inventory / ox_inventory |
With np_inventory the bandana, the spray can and Lester's note are registered at runtime; nothing to add. Without an inventory the bandana is virtual: a member always carries their own, and no can is needed.
The bandana ​
The bandana is an ordinary item with the gang's colour and print in its metadata, and deliberately no gang name:
{ gang = 3, color = 'aqua', print = 'paisley', description = 'Aqua · Paisley' }
- Using the item starts the toggle (
Config.Bandana.toggleMs, 2.5 s, not in combat). The server checks that at least 80 % of that time passed before it counts. - While it is worn, the server checks every
Config.Bandana.verifySeconds(5 s) that it is still in the pockets. A bandana that leaves the pockets comes off. - It can be dropped, robbed or taken off a downed player. A stolen bandana does nothing for a non-member unless
Config.Bandana.strangersCanWearis on, and even then never opens the back room or Lester's screens. - The worn state is replicated as the player state bag
npgBandana:{ gang, color, print, style }orfalse.
Bandanas come from Lester's crate: the first crate after founding, then a limited stock with a weekly restock and a daily cap per buyer (see Founding → Trusted).
ox_inventory ​
ox_inventory/data/items.lua:
['gang_bandana'] = { label = 'Bandana', weight = 60, stack = true, close = true, consume = 0,
description = 'A square of cloth.', server = { export = 'np_gangs.gang_bandana' } },
['spray_can'] = { label = 'Spray can', weight = 400, stack = true, close = true },
['lester_note'] = { label = "Lester's note", weight = 10, stack = true, close = true, consume = 0,
server = { export = 'np_gangs.lester_note' } },
qb-core / qbx ​
qb-core/shared/items.lua (for qbx put them in ox_inventory/data/items.lua as above):
gang_bandana = { name = 'gang_bandana', label = 'Bandana', weight = 60, type = 'item', image = 'gang_bandana.png',
unique = false, useable = true, shouldClose = true, description = 'A square of cloth.' },
spray_can = { name = 'spray_can', label = 'Spray can', weight = 400, type = 'item', image = 'spray_can.png',
unique = false, useable = false, shouldClose = true, description = 'Paint.' },
lester_note = { name = 'lester_note', label = "Lester's note", weight = 10, type = 'item', image = 'lester_note.png',
unique = false, useable = true, shouldClose = true, description = 'Scribbled on the back of a receipt.' },
On qb-inventory the metadata is stored in info.
Dirty cash ​
Config.DirtyMoney.mode = 'auto' takes the first that exists:
| Mode | Used when | Where it lives |
|---|---|---|
item |
The inventory knows Config.DirtyMoney.item (black_money) |
np_inventory, ox_inventory |
account |
The framework has a dirty account | es_extended black_money account |
cash |
Neither | Plain framework cash (qb-inventory: markedbills is worth-based, so cash is used) |
Buy-ins, the reroll fee, stash switch fees, crate purchases, protection money and the stash share of corner sales are paid and booked in dirty cash.