SetVehiclePaintjob: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
This function changes the paintjob on the specified vehicle. </br>
This function changes the paintjob on the specified vehicle. <br/>
Note: Only works for supported vehicles.
Note: Only works for supported vehicles.



Revision as of 16:32, 9 July 2006

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