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.
| Action | Side | Description |
|---|---|---|
hospitalSelector:open | client | The hospital selector opened (previews will teleport the player). |
hospitalSelector:switch | client | The player switched to a different hospital. |
hospitalSelector:close | client | The hospital selector closed (player position restored). |
Context
hospitalSelector:open
| Field | Type | Description |
|---|---|---|
hospitals | table | Array of { id, name } for each available hospital. |
hospitalSelector:switch
| Field | Type | Description |
|---|---|---|
index | number | The new selection index. |
hospitalId | string | ID of the newly selected hospital. |
hospitalName | string | Name 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