Open neku172 opened 2 years ago
That's encountered because server don't know which upgrades are allowed to your vehicle.
https://github.com/multitheftauto/mtasa-blue/blob/c58c3678f263d810f61eb5aecba48e6c4b4dce0c/Client/mods/deathmatch/logic/CVehicleUpgrades.cpp#L449-L453
https://github.com/multitheftauto/mtasa-blue/blob/c58c3678f263d810f61eb5aecba48e6c4b4dce0c/Server/mods/deathmatch/logic/CVehicleUpgrades.cpp#L87-L92
Invalid spoiler id on server-sided CVehicleUpgrades::IsUpgradeCompatible
Server-sided spoiler 1164
can be applied only to Uranus
https://github.com/multitheftauto/mtasa-blue/blob/c58c3678f263d810f61eb5aecba48e6c4b4dce0c/Server/mods/deathmatch/logic/CVehicleUpgrades.cpp#L240-L242
List of supported upgrades on client-side is gathered from game itself. https://github.com/multitheftauto/mtasa-blue/blob/b2a625b100ff037908b002b586ca81692c24b2ae/Client/game_sa/CModelInfoSA.cpp#L1682-L1688
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.