SetVehiclePaintjob

From Multi Theft Auto: Wiki
Revision as of 16:31, 9 July 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function changes the paintjob on the specified vehicle.
Note: Only works for supported vehicles.

Syntax

bool setVehiclePaintjob ( vehicle theVehicle, int Value )

Required Arguments

  • theVehicle: The vehicle you wish to change the paintjob of.
  • Value: A whole number representing the new paintjob id.

Returns

Returns 'true' if the vehicle's paintjob was changed. Otherwise 'false'.

Example

This example will set the paintjob of a new sultan to '2'.

vehicle = createVehicle ( 560, 100, 100, 40 ) -- create the sultan
setVehiclePaintjob ( vehicle, 2 ) -- change the paintjob

See Also