OrigenNetwork
Docs

Exports · origen_titlemenu

All exports are registered under the resource name origen_titlemenu.


Server-side exports

SetupTitleMenu(source)

Trigger the character selection setup for a specific player. Fetches the player's characters and slot count from the database and sends them to the client.

lua
exports['origen_titlemenu']:SetupTitleMenu(source)

Example — re-open the title menu after a character wipe:

lua
RegisterNetEvent('myscript:server:wipeCharacter', function()
    local src = source
    -- ... delete character data ...
    exports['origen_titlemenu']:SetupTitleMenu(src)
end)

Client-side exports

SetDimension(dimension)

Move the local player (and their current vehicle if any) to a specific routing bucket.

lua
exports['origen_titlemenu']:SetDimension(dimension)
ParameterTypeDescription
dimensionnumberRouting bucket ID. 0 = default world

Example — isolate a player into a private dimension:

lua
exports['origen_titlemenu']:SetDimension(42)
-- ... do something in isolation ...
exports['origen_titlemenu']:SetDimension(0)