Skip to content
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

Weapon duplicating #51

Open
maxcamorra opened this issue Mar 29, 2021 · 8 comments
Open

Weapon duplicating #51

maxcamorra opened this issue Mar 29, 2021 · 8 comments

Comments

@maxcamorra
Copy link

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
Copy link
Owner

No clue what you mean

@maxcamorra
Copy link
Author

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
Copy link

xrtw commented Mar 31, 2021

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
Copy link
Author

And how do I fix this problem?

@JiminyKroket
Copy link
Owner

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

@JiminyKroket
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

There isn't anything I can do at this point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants