natives.changeCarColour

From GTA Connected
Jump to navigation Jump to search

Function Client Only icon-iv.png 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.