Browse docs
Stretcher
Reference for Stretcher in ambulancejob.
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