Overkillz Posted October 8, 2019 Share Posted October 8, 2019 (edited) 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 October 8, 2019 by Overkillz Link to comment
Castillo Posted October 8, 2019 Share Posted October 8, 2019 Because the server isn't aware of the upgrades given in the client side. 1 Link to comment
Overkillz Posted October 8, 2019 Author Share Posted October 8, 2019 38 minutes ago, Castillo said: Because the server isn't aware of the upgrades given in the client side. Wasn't aware about it. I thought server side could change it, even if it wasn't created there. Thanks for answering. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now