Перейти к основному содержимому

spawn_vehicle

Spawns a vehicle for the player.

Entry Information

PropertyValue
Entry IDspawn_vehicle
TypeAction
ColorGreen
Iconfa6-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

FieldTypeDescription
definitionRef<VehicleDefinitionEntry>Vehicle definition to spawn
instanceIdStringInstance 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: ""