spawn_vehicle
Spawns a vehicle for the player.
Entry Information
| Property | Value |
|---|---|
| Entry ID | spawn_vehicle |
| Type | Action |
| Color | Green |
| Icon | fa6-solid:car-on |
Description
Spawns a vehicle based on a vehicle definition. If an instance ID is provided, it will spawn that specific instance; otherwise, it will spawn the first available instance.
Fields
| Field | Type | Description |
|---|---|---|
definition | Ref<VehicleDefinitionEntry> | Vehicle definition to spawn |
instanceId | String | Instance UUID (empty = first available) |
Usage Example
- entry: spawn_vehicle
name: "Spawn Sports Car"
comment: "Spawns a sports car vehicle for the player"
group: "spawn"
definition: "sports_car"
instanceId: ""