OnVehicleMod
From SA-MP Wiki
OnVehicleMod
This callback is called when a vehicle is modded.
(playerid, vehicleid, componentid)
| playerid | ID of the player who is actually sitting in the car. |
| vehicleid | ID of the vehicle which is modded. |
| componentid | The componentid which was added to the car. |
public OnVehicleMod(playerid,vehicleid,componentid) { printf("Vehicle %d was modded by ID %d with the componentid %d",vehicleid,playerid,componentid); return 1; }
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- AddVehicleComponent: Add a new component to a vehicle, nitrogen for example.
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- OnVehicleRespray: Called when a vehicle is sprayed
