Browse docs

Client Events

Client-side events provided by the Sky Ambulancejob resource.

Client Events

These events can be triggered from other resources to interact with the ambulance job on the client side.

EventDescription
sky_ambulancejob:reviveRevive the local player.
sky_ambulancejob:deathscreen:startedFired when the death screen opens.
sky_ambulancejob:deathscreen:closedFired when the death screen closes.
sky_ambulancejob:deathStateChangedPublishes a complete local death-state snapshot for external death-screen integrations.
sky_ambulancejob:openDiagnoseOpen the medical diagnosis UI.
sky_ambulancejob:carry:startStart carrying a patient.
sky_ambulancejob:carry:stopStop carrying a patient.

sky_ambulancejob:revive

Revives the local player, clearing the death state and restoring control.

client.lua
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).

client.lua
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.

client.lua
AddEventHandler("sky_ambulancejob:deathscreen:closed", function()
    -- Player is alive again
end)

sky_ambulancejob:deathStateChanged

Publishes the complete local death-state snapshot, including the lifecycle phase, bleed-out timer, respawn availability, dispatch availability, AI Medic state, and detected cause. External death screens should replace their current UI state with every snapshot instead of merging partial state.

client.lua
AddEventHandler("sky_ambulancejob:deathStateChanged", function(state)
    if state.dead then
        -- Show or update the external death screen.
    else
        -- Hide the external death screen.
    end
end)

See External Death Screen for the complete state contract and supported actions.

sky_ambulancejob:openDiagnose

Opens the medical diagnosis interface for the local player, showing injury details and treatment options.

client.lua
TriggerEvent("sky_ambulancejob:openDiagnose")

sky_ambulancejob:carry:start

Starts carrying the nearest patient. The carry system handles animation, movement restrictions, and synchronization.

client.lua
TriggerEvent("sky_ambulancejob:carry:start")

sky_ambulancejob:carry:stop

Stops carrying the current patient and releases them.

client.lua
TriggerEvent("sky_ambulancejob:carry:stop")

Support

Need help? Our support team is always ready to assist

Join Discord