Events
Events exposed by wasabi_spawn for integration hooks.
Clientβ
wasabi_spawn:uiStateβ
Fired when the spawn selector UI opens or closes.
RegisterNetEvent('wasabi_spawn:uiState', function(state)
if state then
print('Spawn UI is now open')
else
print('Spawn UI is now closed')
end
end)
state: true when open, false when closed.
wasabi_spawn:openMenuβ
Compatibility event for older integrations. The second position argument is ignored by the current implementation; last position comes from the framework bridge.
TriggerEvent('wasabi_spawn:openMenu', false, nil)
wasabi_spawn:onPlayerLoadedβ
Fired internally after a spawn is confirmed and the player has loaded through the spawn flow. Listen to this event for integration hooks; do not use it as a general-purpose replacement for your framework's player-loaded event.
AddEventHandler('wasabi_spawn:onPlayerLoaded', function()
print('wasabi_spawn finished loading the player')
end)