Browse docs
Client Exports
Client-side exports provided by the Sky Ambulancejob resource.
Radial Menu
getRadialActions()
- Purpose: Provides the current list of radial menu actions along with labels, descriptions, and availability metadata.
- Returns:
RadialAction[]where each entry containsid,label,description,icon,available, and optional badge or helper fields.
local actions = exports["sky_ambulancejob"]:getRadialActions()
getRadialAction(actionId)
- Purpose: Fetches a single action snapshot by
actionId. - Arguments:
actionId(string)
- Returns: The action snapshot or
nilwhen missing.
local action = exports["sky_ambulancejob"]:getRadialAction("treat_patient")
getRadialActionReport()
- Purpose: Bundles the action list with a quick lookup map for availability and reason information.
- Returns: Object with
actionsandavailability, where each key maps toavailable,disabledReasonKey, anddisabledReason.
local report = exports["sky_ambulancejob"]:getRadialActionReport()
isRadialMenuActionAvailable(actionId)
- Purpose: Tests if a radial menu action is currently enabled without opening the menu.
- Arguments:
actionId(string)
- Returns:
boolean(truewhen the action exists and is enabled).
local available = exports["sky_ambulancejob"]:isRadialMenuActionAvailable("treat_patient")
triggerRadialMenuAction(actionId)
- Purpose: Executes the same handler the radial menu would for the given action, without opening the UI.
- Arguments:
actionId(string)
- Returns:
boolean:truewhen the action was accepted.table?: When the action fails, returns a map withkey/fallbackfor notification text.
local success, err = exports["sky_ambulancejob"]:triggerRadialMenuAction("treat_patient")
Radial Menu Actions
Each action mirrors the descriptions and availability logic of the in-game radial UI.
| Action ID | Icon | Label | Description |
|---|---|---|---|
stretcher_deploy | Bed | Deploy / Stow stretcher | Deploy or stow the stretcher from the assigned vehicle. |
stretcher_carry | Hand | Pick up / Place stretcher | Pick up or place the active stretcher nearby. |
stretcher_patient | BedDouble | Place / Release patient | Move patients on or off the active stretcher. |
stretcher_vehicle | Truck | Load / Unload stretcher | Move the stretcher between the ground and the vehicle. |
carry_patient | HelpingHand | Carry / Drop patient | Carry the closest person to safety, or drop them. |
vehicle_pull | Car | Pull from vehicle | Pull an unconscious patient out of a nearby vehicle. |
treat_patient | HeartPulse | Treat patient | Diagnose and treat the closest patient. |
billing | ReceiptText | Issue bill | Issue a bill to the nearest patient. |
Crutch
EquipCrutch()
- Purpose: Equips a crutch on the local player.
exports["sky_ambulancejob"]:EquipCrutch()
UnequipCrutch()
- Purpose: Removes the crutch from the local player.
exports["sky_ambulancejob"]:UnequipCrutch()
ToggleCrutch()
- Purpose: Toggles the crutch on or off.
exports["sky_ambulancejob"]:ToggleCrutch()
SetWalkStyle(style)
- Purpose: Sets the crutch walk animation style.
- Arguments:
style(string): The clipset name for the walk animation.
exports["sky_ambulancejob"]:SetWalkStyle("move_m@injured")
Wheelchair
EquipWheelchair()
- Purpose: Equips a wheelchair for the local player.
exports["sky_ambulancejob"]:EquipWheelchair()
UnequipWheelchair()
- Purpose: Removes the wheelchair from the local player.
exports["sky_ambulancejob"]:UnequipWheelchair()
ToggleWheelchair()
- Purpose: Toggles the wheelchair on or off.
exports["sky_ambulancejob"]:ToggleWheelchair()
Death Screen
open()
- Purpose: Opens the death screen UI.
exports["sky_ambulancejob"]:open()
updateTime(seconds)
- Purpose: Updates the bleed-out timer to a specific value.
- Arguments:
seconds(number): The new timer value in seconds.
exports["sky_ambulancejob"]:updateTime(120)
addTime(seconds)
- Purpose: Adds time to the current bleed-out timer.
- Arguments:
seconds(number): Seconds to add.
exports["sky_ambulancejob"]:addTime(30)
Injury & State
GetLocalInjuryProfile()
- Purpose: Returns the current player's injury profile with all active conditions and wounds.
- Returns:
table— the full injury profile object.
local profile = exports["sky_ambulancejob"]:GetLocalInjuryProfile()
isDead()
- Purpose: Queries the local player's death state.
- Returns:
boolean(truewhen dead/downed,falsewhen alive).
local dead = exports["sky_ambulancejob"]:isDead()
Insurance
OpenInsurance()
- Purpose: Opens the insurance UI for the local player.
exports["sky_ambulancejob"]:OpenInsurance()
Stretcher
openStretcherEditor(payload)
- Purpose: Opens the interactive stretcher positioning editor for vehicle attachment configuration. Spawns a preview vehicle with an attached stretcher that can be repositioned via keyboard controls.
- Arguments:
payload(table):model(string | number) — Vehicle model name or hash. Required.name(string?) — Optional display name for the vehicle.
- Returns:
tablewith:success(boolean) —truewhen the editor opened successfully.error(string?) — Error message whensuccessisfalse.
local result = exports["sky_ambulancejob"]:openStretcherEditor({
model = "ambulance",
name = "Ambulance"
})
if not result.success then
print("Error: " .. result.error)
end
Support
Need help? Our support team is always ready to assist
Join Discord