Browse docs
Client Events
Client Events
These events can be triggered from other resources to interact with the ambulance job on the client side.
| Event | Description |
|---|---|
sky_ambulancejob:revive | Revive the local player. |
sky_ambulancejob:deathscreen:started | Fired when the death screen opens. |
sky_ambulancejob:deathscreen:closed | Fired when the death screen closes. |
sky_ambulancejob:openDiagnose | Open the medical diagnosis UI. |
sky_ambulancejob:carry:start | Start carrying a patient. |
sky_ambulancejob:carry:stop | Stop carrying a patient. |
sky_ambulancejob:revive
Revives the local player, clearing the death state and restoring control.
TriggerEvent("sky_ambulancejob:revive")
sky_ambulancejob:deathscreen:started
Fired when the death screen UI is shown. Useful for other resources that need to react to player death (e.g., disabling HUD elements).
AddEventHandler("sky_ambulancejob:deathscreen:started", function()
-- Player is now on the death screen
end)
sky_ambulancejob:deathscreen:closed
Fired when the death screen UI is closed (player revived or respawned). Useful for re-enabling systems that were paused during death.
AddEventHandler("sky_ambulancejob:deathscreen:closed", function()
-- Player is alive again
end)
sky_ambulancejob:openDiagnose
Opens the medical diagnosis interface for the local player, showing injury details and treatment options.
TriggerEvent("sky_ambulancejob:openDiagnose")
sky_ambulancejob:carry:start
Starts carrying the nearest patient. The carry system handles animation, movement restrictions, and synchronization.
TriggerEvent("sky_ambulancejob:carry:start")
sky_ambulancejob:carry:stop
Stops carrying the current patient and releases them.
TriggerEvent("sky_ambulancejob:carry:stop")
Support
Need help? Our support team is always ready to assist
Join Discord