Skip to main content

Vehicle Related Properties

xVehicle.id

Reflects the vehicle's id property in database if it's a persistent vehicle

xVehicle.id ---@type number | nil

xVehicle.owner

Reflects the vehicle's owner property in database if it's a persistent vehicle

xVehicle.owner ---@type string | nil

xVehicle.group

Reflects the vehicle's group property in database if it's a persistent vehicle

xVehicle.group ---@type string | nil

xVehicle.netId

Reflects the vehicle's Network-ID

xVehicle.netId ---@type number

xVehicle.entity

Reflects the vehicle's Entity-ID

xVehicle.entity ---@type number

xVehicle.model

Reflects the vehicle's model name

xVehicle.model ---@type string

xVehicle.plate

Reflects the vehicle's object unique plate number. Does not necessarily match the vehicle's plate property (i.e. fake plates).

xVehicle.plate ---@type string

xVehicle.vin

Reflects the vehicle's unique vin number.

xVehicle.vin ---@type string

xVehicle.script

Reflects name of the resource that spawned the vehicle.

xVehicle.script ---@type string

xVehicle.stored

Reflects the vehicle's stored property in database if it's a persistent vehicle.

xVehicle.stored ---@type boolean | nil