Jump to content

removeVehicleUpgrade


Scooby

Recommended Posts

Hi guys, so im recently getting an error in a script since i updated,

i use addVehicleUpgrade(vehicle,"all") to add all available upgrades to the vehicle, which works fine,

but now removeVehicleUpgrade(vehicle,"all") is giving a warning saying this may cause an error is future versions,

this used to work fine but i guess things change with updates, will i have to remove all the upgrades one by one or is there a new way to do this?

Thanks in advance for any advice.

 

 

 

Edited by Scooby
Link to comment

this will only get the upgrades added, which i already told you, all upgrades are added,

i want to know if there is a command to remove all like removeVehicleUpgrade(vehicle,"all") - which i currently use and have been doing so since the start of MTASA.

i realise i can create a loop to remove all of them one by one, and also that "all" still works at the moment, (with the warning it will give errors in future versions)

is the "all" parameter of the function being removed from addVehicleUpgrade too?

is this being replaced or totally removed?

I guess this can only be answered by someone involved in mta.

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...