๐Ÿ”งInstallation

SQL

Run sql/install.sql or let the resource auto-create the table on first start.

Fivemanage API Key

Add to your server.cfg:

set graffiti_fivemanage_key "YOUR_API_KEY_HERE"
circle-exclamation

Items

Add the two required items to your inventory. Only graffiti_spray and graffiti_eraser are needed.

ox_inventory โ€” data/items.lua

['graffiti_spray'] = {
    label       = 'Spray Paint',
    weight      = 300,
    stack       = false,
    close       = true,
    description = 'A can of spray paint. Color and durability stored in metadata.',
    client      = { image = 'graffiti_spray.png' },
},
 
['graffiti_eraser'] = {
    label       = 'Graffiti Eraser',
    weight      = 200,
    stack       = false,
    close       = true,
    description = 'Removes graffiti strokes from a canvas. Has limited uses.',
    client      = { image = 'graffiti_eraser.png' },
},

qb-core / qbx-core โ€” qb-core/shared/items.lua

ESX โ€” SQL

Item metadata reference

Both items carry metadata set automatically by the shop at purchase time:

Item
Field
Description

graffiti_spray

metadata.color

Hex color string, e.g. #CC2222. nil = free-color spray

graffiti_spray

metadata.durability

Integer 0โ€“100, decreases as you paint

graffiti_eraser

metadata.durability

Integer 0โ€“100, decreases per erase use

server.cfg

Last updated