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

Server

useLudusBoard (ox_inventory)

Primary entry for ox_inventory usable items.

Item setup:

['ludus_board'] = {
    label = 'Ludus Board',
    weight = 500,
    stack = true,
    close = true,
    consume = 0,
    description = 'Use to place a Ludus table.',
    server = {
        export = 'cdev_ludus.useLudusBoard'
    }
},
exports('useLudusBoard', function(event, item, inventory, slot, data)
    -- ox_inventory usable-item callback
    -- Triggers client placement when event == 'usingItem'
end)

Public server API (public/server/api.lua)

Buyer-editable helpers used by core (do not remove; you may adapt bridges behind them):

Function

Purpose

Api.IsAdmin(source)

ACE check (LudusConfig.ACE.Admin)

Api.GetCitizenId(source)

Persistent character id

Api.GetCash / Api.GetBank

Balances

Api.AddMoney / Api.RemoveMoney

Economy

Api.Notify(source, message, type)

Single notify path to client bridge

Last updated