natives.changeCarColour: Difference between revisions
Jump to navigation
Jump to search
ChrisGame20 (talk | contribs) No edit summary |
ChrisGame20 (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
|games = iv | |games = iv | ||
|type = function | |type = function | ||
|name = natives. | |name = natives.changeCarColour | ||
|parameters = int | |parameters = Vehicle vehicle, int colour1, int colour2 | ||
|parameter1 = int | |parameter1 = Vehicle vehicle The vehicle | ||
| | |parameter2 = int colour1 The primary colour index | ||
|usage = | |parameter3 = int colour2 The secondary colour index | ||
|usage = Change the primary and secondary colours of a vehicle | |||
|return1 = void | |return1 = void | ||
|exampleJS = natives. | |exampleJS = addCommandHandler("paintcar", function(command, params, client) { | ||
natives.changeCarColour(localPlayer.vehicle, 5, 10); | |||
}); | |||
}} | }} | ||
Latest revision as of 04:25, 10 January 2026
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
void natives.changeCarColour(Vehicle vehicle, int colour1, int colour2)
The natives.changeCarColour function is used to Change the primary and secondary colours of a vehicle.
Parameters
| 1) | Vehicle | vehicle | The vehicle. |
| 2) | int | colour1 | The primary colour index. |
| 3) | int | colour2 | The secondary colour index. |
Return
| void | This function doesn't return a value. |
Notes
There aren't any notes for this function.
Examples
Example 1 - JavaScript:
addCommandHandler("paintcar", function(command, params, client) {
natives.changeCarColour(localPlayer.vehicle, 5, 10);
});
Compatibility
There isn't any compatibility information for this function.