OnVehiclePaintjob

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 09:28, 21 April 2014
MP2 (Talk | contribs)

← Previous diff
Revision as of 19:50, 23 April 2014
Ikkentim (Talk | contribs)
(This is a callback(NoReturn>NoReturnCallback))
Next diff →
Line 8: Line 8:
{{Param|paintjobid|The ID of the new [[paintjob]].}} {{Param|paintjobid|The ID of the new [[paintjob]].}}
-{{NoReturn}}+{{NoReturnCallback}}
<pawn> <pawn>

Revision as of 19:50, 23 April 2014



Description:

Called when a player changes the paintjob of their vehicle (in a modshop).


Parameters:
(playerid, vehicleid, paintjobid)
playeridThe ID of the player whos vehicle is modded.
vehicleidThe ID of the vehicle that changed paintjob.
paintjobidThe ID of the new paintjob.


Return Values:

This callback does not handle returns.


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;
}
Image:32px-Ambox_warning_orange.png

Note

This is called when a paintjob is VIEWED in modshops! It also only works in modshops.


Related Functions

The following functions might be useful, as they're related to this callback in one way or another.


Related Callbacks

The following callbacks might be useful as well, as they are related to this callback in one way or another.

In other languages