open.mp | RemoveVehicleComponent
  • Home
  • FAQ
  • Forum
  • Servers
  • Docs
  • Blog
  • Login
  • Englishاللغة العربيةar-TNবাংলাbosanski jezikDeutschΕλληνικάEspañoleestiفارسیFrançaisHrvatskimagyarBahasa IndonesiaItaliano日本語ქართულიlietuvių kalbaNederlandsNorskjęzyk polskiPortuguêsRomânăРусскийslovenski jezikсрпски језикไทยWikang TagalogTürkçeУкраїнськаاردوTiếng Việt简体中文繁體中文
warning Not Translated

This page has not been translated into the language that your browser requested. 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.

NameDescription
vehicleidID of the vehicle.
componentidID of the component to remove.

Returns

0 - The component was not removed because the vehicle does not exist.

1 - The component was successfully removed from the vehicle.

Examples

//remove Nitro from vehicle number 1
RemoveVehicleComponent(1, 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.
  • OnVehicleMod: Called when a vehicle is modded.
  • OnEnterExitModShop: Called when a vehicle enters or exits a mod shop.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub