Skip to main content

Events

A series of possibly useful events within Spawn Selector (wasabi_spawn) that will be expanded as needed.

Client​


wasabi_spawn:uiState
RegisterNetEvent('wasabi_spawn:uiState', function(state) -- This event can be used to know when the UI is open or closed for huds and other resources.
--[[ if state then
print('UI is now open')
else
print('UI is now closed')
end
]]
end)

state : Returns true or false depending on which state the UI is switching to. Returning true reflects an open UI while false as closed.