OrigenNetwork
Docs

Exports · origen_propplacer

All exports are registered under the resource name origen_propplacer and run client-side.


Client-side exports

openManagement()boolean

Opens the prop placement management panel for the local player.

If the player has not yet been verified as an admin, the export triggers a server-side permission check automatically before opening the UI. Returns true in all cases — the panel will open once the permission check completes.

lua
exports['origen_propplacer']:openManagement()

Example — open from a menu or NUI callback:

lua
RegisterNUICallback('openPropPlacer', function(_, cb)
    exports['origen_propplacer']:openManagement()
    cb('ok')
end)

Example — open from a command:

lua
RegisterCommand('props', function()
    exports['origen_propplacer']:openManagement()
end, false)

This export is used internally by origen_hub when configured with adminRoute = "export". You can also call it from any resource, keybind, or menu to integrate prop management into your server's admin flow.