-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getVehicleCompatibleUpgrades returns different value on serverside and clientside #2476
Comments
That's encountered because server don't know which upgrades are allowed to your vehicle. |
mtasa-blue/Client/mods/deathmatch/logic/CVehicleUpgrades.cpp Lines 449 to 453 in c58c367
mtasa-blue/Server/mods/deathmatch/logic/CVehicleUpgrades.cpp Lines 87 to 92 in c58c367
Invalid spoiler id on server-sided CVehicleUpgrades::IsUpgradeCompatible
Server-sided spoiler mtasa-blue/Server/mods/deathmatch/logic/CVehicleUpgrades.cpp Lines 240 to 242 in c58c367
|
List of supported upgrades on client-side is gathered from game itself. mtasa-blue/Client/game_sa/CModelInfoSA.cpp Lines 1682 to 1688 in b2a625b
|
The only option to keep the same upgrade list both (client side & server side) is create list of available upgrades per each vehicle model (gathered from game itself). |
Describe the bug
Function getVehicleCompatibleUpgrades returns different values on server-side and client-side.
To reproduce
Expected behaviour
Results should be the same on server and client
Screenshots
Version
Server: MTA:SA Server v1.5.9-release-21048
Client: Multi Theft Auto v1.5.9-release-21048
Additional context
Also, trying to upgrade 1164 in Elegy on server doesn't work, but on client everything works perfectly.

The text was updated successfully, but these errors were encountered: