mtasa-blue
mtasa-blue copied to clipboard
Bugfix: getVehicleCompatibleUpgrades returns different value on serverside and clientside
- getVehicleCompatibleUpgrades returns different value on serverside and clientside
- The spoiler
1164cannot be applied to any other vehicle thanUranusfrom server-side.
PoC:
cv Bullet
srun outputConsole(inspect(getVehicleCompatibleUpgrades(me.vehicle)))
crun outputConsole(inspect(getVehicleCompatibleUpgrades(me.vehicle)))
srun me.vehicle:addUpgrade( 1164 )
Fixes #2476
I've made a test resource to compare the difference in upgrades for all vehicles between client & server, and vice versa.
for all vehicles:
/checkserverupgrades will print a list of upgrades which are available on the server, but not on the client
/checkclientupgrades will print a list of upgrades which are available on the client, but not on the server
the lists are written as JSON to a file, server_output.txt or client_output.txt.
(note: these files exists in your client resources folder, not server)
was this PR intended to completely resolve all differences, for all vehicles? because it seems there are still quite a few differences on both sides.
maybe my test resource overlooks something? check it out and let me know
Lpsd's comment needs to be addressed.
This draft pull request is stale because it has been open for at least 90 days with no activity. Please continue on your draft pull request or it will be closed in 30 days automatically.
This draft pull request is stale because it has been open for at least 90 days with no activity. Please continue on your draft pull request or it will be closed in 30 days automatically.
This draft pull request was closed because it has been marked stale for 30 days with no activity.