# Stretcher

> Reference for Stretcher in ambulancejob.

[All client exports](/docs/jobs/ambulancejob/api/client-exports)

## 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**: `table` with:

  - `success` (`boolean`) — `true` when the editor opened successfully.
  - `error` (`string?`) — Error message when `success` is `false`.

```lua
local result = exports["sky_ambulancejob"]:openStretcherEditor({
    model = "ambulance",
    name  = "Ambulance"
})

if not result.success then
    print("Error: " .. result.error)
end
```
