64
edits
ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.changeCarColour |parameters = Vehicle vehicle, int primaryColor, int secondaryColor |parameter1 = Vehicle vehicle The vehicle |parameter2 = int primaryColor The primary color index |parameter3 = int secondaryColor The secondary color index |usage = Change the primary and secondary colors of a vehicle |notes = Color indices usually range from 0 to 133 in GTA IV |return1 = void |exampleJS = addCom...") |
ChrisGame20 (talk | contribs) No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
|type = function | |type = function | ||
|name = natives.changeCarColour | |name = natives.changeCarColour | ||
|parameters = Vehicle vehicle, int | |parameters = Vehicle vehicle, int colour1, int colour2 | ||
|parameter1 = Vehicle vehicle The vehicle | |parameter1 = Vehicle vehicle The vehicle | ||
|parameter2 = int | |parameter2 = int colour1 The primary colour index | ||
|parameter3 = int | |parameter3 = int colour2 The secondary colour index | ||
|usage = Change the primary and secondary | |usage = Change the primary and secondary colours of a vehicle | ||
|return1 = void | |return1 = void | ||
|exampleJS = addCommandHandler(" | |exampleJS = addCommandHandler("paintcar", function(command, params, client) { | ||
natives.changeCarColour(localPlayer.vehicle, 5, 10); | |||
}); | |||
}); | |||
}} | }} | ||
edits