For the complete documentation index, see llms.txt. This page is also available as Markdown.

Items

Register the GPS item in ox_inventory or qb-inventory.

The item name comes from config:

item = 'gps',

Change it here if your server uses another name — then match that name in your inventory files below.

Inventory setup

In ox_inventory/data/items.lua:

['gps'] = {
    label = 'GPS',
    weight = 500,
    stack = false,
    close = true,
    consume = 0,
    description = 'Handheld GPS unit.',
    client = {
        event = '0r-gps:client:toggleGPS'
    }
},

Item image

Put a gps.png in your inventory image folder (for example ox_inventory/web/images/). The script does not ship inventory icons.

ESX (database items)

If you use ESX with a classic item table, add a row for gps. The script still registers it as usable when the resource starts — you only need the item to exist in the database and in player inventories.

Last updated