Skip to content

fix(weapon/client): infinite ammo not working on petrolcan and fireextinguisher#47

Open
Cata-a1138 wants to merge 1 commit intoCommunityOx:mainfrom
Cata-a1138:main
Open

fix(weapon/client): infinite ammo not working on petrolcan and fireextinguisher#47
Cata-a1138 wants to merge 1 commit intoCommunityOx:mainfrom
Cata-a1138:main

Conversation

@Cata-a1138
Copy link

It doesn’t work when passing the weaponHash parameter to SetPedInfiniteAmmo.
Leaving weaponHash empty makes the behavior identical to SetPedInfiniteAmmoClip.
I chose to use SetPedInfiniteAmmoClip instead to avoid missing parameter warnings.

@Maximus7474
Copy link
Member

This seems odd, pretty sure there weren't any issues in the past. What gamebuild and artifacts are you using ?

Copy link
Member

@Maximus7474 Maximus7474 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolves the issue on game build 3717 and artifacts b23683.

Before merging, attempt to locate the source of the issue (personal guess being game build).

@Cata-a1138
Copy link
Author

After further testing, I found this is actually a conflict with vMenu, unrelated to game builds or artifacts.
The issue occurs whenever vMenu is active, and this PR resolves it.

@Maximus7474
Copy link
Member

Just notices I also had it running on my test server, it addresses the possible compatibility issues with external scripts without breaking base functions.

@iSentrie
Copy link

What these changes does is infinite ammo for every single weapon.

  1. Take in hands petrol can
  2. Swap to Carbine
  3. Just shoot endlessly, unlimited ammo.

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

Successfully merging this pull request may close these issues.

3 participants