altv-issues
altv-issues copied to clipboard
`setWeaponAmmo` does not work with custom weapons from resources
Description of the problem
setWeaponAmmo
when is used for weapons resources will not set any ammo.
Desired solution for the problem
When a weapon resource is loaded, slould parse the data.
Alternatives you considered
No response
Additional context
No response
Version
dev/15.0-dev615
I want to add its even more like a bug, because player.giveWeapon
doesnt give addon weapon, but maybe it only happens with throwable weapon addon
@xxshady it can be throwables, i try whit a shotgun and it work, but i cant give ammo.
shotgun is not throwable
Have the same problem you can give yourself the weapon but cannot set any ammo
Its releted to how wepons work in v15 if u know the ammo hash for the weapon, u can use the ammo hash for setting up the ammo using player.setAmmo
marked as bug because player.giveWeapon
was working for addons before v15
Any updates on this? I didn't test it in the lastest release.
Tested on the lastest realease an seam to be working properly now.