Open TuK4z opened 3 months ago
please provide full repo code
Sorry.
Clientside:
Alt.OnPlayerWeaponChange += (oldweapon, newweapon) => { AltV.Net.Client.Elements.Data.WeaponData? wData = Alt.GetWeaponDataByWeaponHash(newweapon); };
When entering hydra for example after one of the latest release updates ir started to return 0. I added check
if (newweapon == 0) return;
It's not a big problem but reporting, because it crash if you use GetWeaponDataByWeaponHash(0)
When enter Hydra or Tank client event "WeaponChange" returns newweapon as 0 leading to crash when use Alt.GetWeaponDataByWeaponHash(newweapon)