Hydra Docs
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:

lua
pcall(function() exports.HydraAC:SetSpawnMenuState(true, 60000) end)  -- menu opened
pcall(function() exports.HydraAC:SetSpawnMenuState(false) end)        -- player spawned
ArgumentType
openbooleantrue while the menu is open.
msnumberOptional: the longest the menu can stay open.

This export is only honoured on standalone servers.