local veh, err = exports['dc_vehicles']:requestVehicle(requestData)| Field | Type | Required | Notes |
|---|---|---|---|
model | string | yes | |
owner | table | yes | { type = 'manual' | 'player', id?, source? } |
id | string | no | |
vehicleType | string | no | |
plate | string | no | |
locked | boolean | no | |
persistent | boolean | no | |
fuelLevel | number | no | |
health | { body?, engine? } | no | |
position | { x?, y?, z?, heading? } | no | |
colors | table | no | |
mods | table | no | |
deformation | table | no |
| Returns (ok) | { vehicleId, netId, owner } |
| Returns (fail) | nil, string? |
local veh, err = exports['dc_vehicles']:requestVehicle({
model = 'sultan',
owner = { type = 'player', source = source },
plate = 'DEV001',
persistent = true,
})