JiminyKroket / Invhud

ESX_InventoryHUD rework
11 stars 12 forks source link

Weapon duplicating #51

Open maxcamorra opened 3 years ago

maxcamorra commented 3 years ago

It's possible to duplicate weapons if you for example get a gasoline can and it doesnt show up, so then you go to the shop and after that you can get so many weapons as you want

JiminyKroket commented 3 years ago

No clue what you mean

maxcamorra commented 3 years ago

I get a gasoline can and then somehow it glitches and I get a weapon and I can click on it as often as I want and get this amount of weapons...

xrtw commented 3 years ago

also about weapon_petrolcan it doesnt shows how many it left.. it shows undefined. also i think when it reach 0 litres (ammo), so you get spammed in console

self.updateWeaponAmmo = function(weaponName, ammoCount)
    local loadoutNum, weapon = self.getWeapon(weaponName)
    if weapon then
        if ammoCount < weapon.ammo then
            weapon.ammo = ammoCount
        end
    end
end

weapon.ammo = ammoCount this

maxcamorra commented 3 years ago

And how do I fix this problem?

JiminyKroket commented 3 years ago

I don't know. Not something I have experienced to be able to even start looking into 🤷

JiminyKroket commented 3 years ago

Oddly enough you two seem to be the only ones who are continually mentioning duplication issues... Whether its items or weapons or whatever.. So maybe you need to sort out your framework or something?

maxcamorra commented 3 years ago

I also tried with clean install of esx and edited it how you tell us to do so. Same Problems.. Maybe the other people just don't care about that I don't know. I use esx 1.2

JiminyKroket commented 3 years ago

There isn't anything I can do at this point