Exports
Spawn menu
SetSpawnMenuState, for standalone servers with their own spawn or character menu.
SetSpawnMenuState (client)
On ESX, Qbox and QBCore, Hydra follows character loading by itself. On a standalone server with its own spawn or character selection, tell Hydra while the menu is open, so the camera and position changes there are not flagged:
pcall(function() exports.HydraAC:SetSpawnMenuState(true, 60000) end) -- menu opened
pcall(function() exports.HydraAC:SetSpawnMenuState(false) end) -- player spawned| Argument | Type | |
|---|---|---|
open | boolean | true while the menu is open. |
ms | number | Optional: the longest the menu can stay open. |
This export is only honoured on standalone servers.