Events
The boss menu normally opens through placed locations, but other resources can hook into these client events. All actions triggered from the UI are still permission-checked server-side, so opening the menu programmatically never bypasses access control.
Open the boss menu
Client-side event — opens the boss menu for the local player (they must hold the job and have access):
LUA
TriggerEvent('bablo-bossmenu:client:openMenu', {
job = 'police', -- job name
type = 'boss' -- 'boss' opens the menu, 'wardrobe' the outfit panel, 'stash' the job stash
})| Field | Type | Description |
|---|---|---|
job | string | The job whose menu to open |
type | string | 'boss', 'wardrobe' or 'stash' |
locationId | string | nil | Optional — a specific placed location (used by 'stash' to pick which stash) |
'stash' opens the physical job stash and is validated server-side, including a proximity check against the placed stash location.
Open the Boss Creator
Server-side — opens the creator UI for a specific player. Your script is responsible for deciding who may trigger it:
LUA
TriggerClientEvent('bablo-bossmenu:client:openCreator', playerId)
