gta.createVehicle

Revision as of 00:25, 11 December 2019 by Mex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

gta.createVehicle

Signature: Vehicle The vehicle handle. gta.createVehicle()

Usage: add a vehicle, use the addToWorld function afterwards to add the vehicle to the players games

Parameters

int model The vehicle model ID.
Vec3 position optional Vec3(0.0,0.0,0.0) The position for the vehicle.

Return

Vehicle The vehicle handle.

On failure: null n/a