- Documentation
- Server functions
- setVehiclePaintjob
Function
setVehiclePaintjob
Applies one of the factory paintjobs from the Loco Low Co. and Wheel Arch Angels garages to a vehicle, visible to every player. Only some models have paintjobs (e.g. Elegy, Jester, Savanna, Blade); nothing changes on others. The paintjob covers the main colour.
Syntax
bool setVehiclePaintjob(vehicle vehicle, int paintjob)Arguments
vehiclevehicle- The vehicle.
paintjobint- 0, 1 or 2 = paintjob number, 3 = no paintjob.
Returns
true on success, false for a value outside 0-3.
Example
local elegy = createVehicle(562, 2000, -1690, 13.5)
setVehiclePaintjob(elegy, 1)