RemoveVehicleComponent
From SA-MP Wiki
(Difference between revisions)
Revision as of 15:49, 16 October 2009 Amit B (Talk | contribs) ← Previous diff |
Revision as of 04:47, 5 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|Remove a component from a vehicle.}} | {{Description|Remove a component from a vehicle.}} | ||
Line 7: | Line 6: | ||
{{Param|vehicleid|ID of the vehicle.}} | {{Param|vehicleid|ID of the vehicle.}} | ||
{{Param|componentid|ID of the [[Car_Component_ID|component]] to remove.}} | {{Param|componentid|ID of the [[Car_Component_ID|component]] to remove.}} | ||
+ | |||
{{NoReturn}} | {{NoReturn}} | ||
Line 24: | Line 24: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:RemoveVehicleComponent]] |
Revision as of 04:47, 5 February 2014
Description:
Remove a component from a vehicle.
(vehicleid, componentid)
vehicleid | ID of the vehicle. |
componentid | ID of the component to remove. |
Return Values:
This function does not return any specific values.
//remove Nitro from vehicle number 1 RemoveVehicleComponent(1,1010);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- AddVehicleComponent: Add a component to a vehicle.
- GetVehicleComponentInSlot: Check what components a vehicle has.
- GetVehicleComponentType: Check the type of component via the ID.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnVehicleMod: Called when a vehicle is modded.
- OnEnterExitModShop: Called when a vehicle enters or exits a mod shop.