Jump to content

Weapon table with amount


JanriKallas

Recommended Posts

Posted

is there way to getPedWeapon and ammo and insert it into table so after respawn it gets the table?

I tried toJSON but it can give only one value so like weaponID but not ammo..

Posted

If you're using freeroam i'm not sure onPlayerSpawn will work, so it might be easier to just edit the freeroam resource or the script you're working on.

Then its just a matter of using GetPedWeapon and GetPedTotalAmmo

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...