SetVehiclePaintjob

From Multi Theft Auto: Wiki
Revision as of 17:13, 15 April 2014 by Wielebny (talk | contribs) (Link to paintjob list)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function changes the paintjob on the specified vehicle.
See paintjob for list of 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. Ranges from 0 up to 3.

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'.

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

See Also