OrigenNetwork
Docs

Exports · origen_blackmarket

All exports are registered under the resource name origen_blackmarket.


Client-side exports

OpenMenu() → opens the NPC black market menu

Opens the black market interface from the nearest NPC access point. Equivalent to the player pressing E on the menu NPC.

lua
exports['origen_blackmarket']:OpenMenu()

Example — open the black market from another resource's interaction:

lua
exports['ox_target']:addBoxZone({
    coords = vector3(491.9, -583.38, 24.69),
    size   = vector3(1.0, 1.0, 2.0),
    options = {
        {
            label    = 'Black Market',
            onSelect = function()
                exports['origen_blackmarket']:OpenMenu()
            end,
        }
    }
})