Browse docs

Hospital Selector

Action hooks for the hospital selector during bleedout.

Actions

These actions fire when a player opens the hospital selector during bleedout. The player position changes as they preview each hospital — use these hooks to whitelist teleports in your anti-cheat.

ActionSideDescription
hospitalSelector:openclientThe hospital selector opened (previews will teleport the player).
hospitalSelector:switchclientThe player switched to a different hospital.
hospitalSelector:closeclientThe hospital selector closed (player position restored).

Context

hospitalSelector:open

FieldTypeDescription
hospitalstableArray of { id, name } for each available hospital.

hospitalSelector:switch

FieldTypeDescription
indexnumberThe new selection index.
hospitalIdstringID of the newly selected hospital.
hospitalNamestringName of the newly selected hospital.

hospitalSelector:close

No context fields (empty table).

Example — Anti-cheat whitelist

client.lua
exports["sky_ambulancejob"]:onAction("hospitalSelector:open", function()
    exports["your_anticheat"]:whitelistPlayer(true)
end)

exports["sky_ambulancejob"]:onAction("hospitalSelector:close", function()
    exports["your_anticheat"]:whitelistPlayer(false)
end)

Support

Need help? Our support team is always ready to assist

Join Discord