OnVehiclePaintjob
From SA-MP Wiki
(Difference between revisions)
Revision as of 03:09, 30 December 2009 Mikep (Talk | contribs) ← Previous diff |
Revision as of 23:27, 31 January 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|Called when a player changes the paintjob of their vehicle (in a modshop).}} | {{Description|Called when a player changes the paintjob of their vehicle (in a modshop).}} | ||
Line 32: | Line 31: | ||
[[Category:Scripting Callbacks]] | [[Category:Scripting Callbacks]] | ||
+ | |||
+ | [[fr:OnVehiclePaintjob]] |
Revision as of 23:27, 31 January 2014
Description:
Called when a player changes the paintjob of their vehicle (in a modshop).
(playerid, vehicleid, paintjobid)
playerid | The ID of the player whos vehicle is modded. |
vehicleid | The ID of the vehicle that changed paintjob. |
paintjobid | The ID of the new paintjob. |
Return Values:
This function does not return any specific values.
public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { new string[128]; format(string, sizeof(string), "You have changed your vehicle's paintjob to %d!", paintjobid); SendClientMessage(playerid, 0x33AA33AA, string); return 1; }
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- ChangeVehiclePaintjob: Change the paintjob on a vehicle.
- ChangeVehicleColor: Set the color of a vehicle.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnVehicleRespray: Called when a vehicle is resprayed.
- OnVehicleMod: Called when a vehicle is modded.