Jump to content

Issue with removeVehicleUpgrade


Overkillz

Recommended Posts

Hello guys, today I've found an issue on my code that when the map starts, it doesn't remove the vehicle Upgrade server side, but if I do it client side, it works.

First of all, I need to tell you that Im creating the vehicle at the server side, but Im giving it the upgrade at client side.

Im storing all the player vehicles into a table to identify all of them easily and the format is simple

arenaSrv.vehicles[thePlayer]

Well, I can rotate, set a new position ...whatever for the vehicle at server side, except, remove that vehicle upgrade (1010)

setElementPosition(arenaSrv.vehicles[thePlayer],x,y,z)
setElementRotation(arenaSrv.vehicles[thePlayer],0,0,rz)
removeVehicleUpgrade(arenaSrv.vehicles[thePlayer], 1010) --THIS IS NOT WORKING

I have some events that could solve that problem but I wont extend the code and I would like to know why does it happen.

I have ensured that the upgrade is the 1010 and Im not getting any debug message.

It is an MTA Bug or something ?

Thanks for reading. Regards.

Edited by Overkillz
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...