warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
RemoveVehicleComponent
Description
Remove a component from a vehicle.
Name | Description |
---|---|
vehicleid | ID of the vehicle. |
component | ID of the component to remove. |
Returns
true - The component was successfully removed from the vehicle.
false - The component was not removed because the vehicle does not exist.
Examples
// Remove Nitro from player vehicle
new vehicleid = GetPlayerVehicleID(playerid);
RemoveVehicleComponent(vehicleid, 1010);
Related Functions
- AddVehicleComponent: Add a component to a vehicle.
- GetVehicleComponentInSlot: Check what components a vehicle has.
- GetVehicleComponentType: Check the type of component via the ID.
- VehicleCanHaveComponent: Is the component legal on the vehicle?
Related Callbacks
- OnVehicleMod: Called when a vehicle is modded.
- OnEnterExitModShop: Called when a vehicle enters or exits a mod shop.