It’s the amount of ammo so if you want it to be full then use 1000 and I’m pretty sure you get the weapon the ped is using not an extended magazine, you could always detect what gun they are using, then set the max ammon on current weapon.

However for a specific it would be like
For example

RegisterNetEvent('maxAmmo')
AddEventHandler('maxAmmo', function()
    local ped = GetPlayerPed(-1)
    GetMaxAmmo(ped, 1593441988, 1000)
end)

Just an idea, however to get the current weapon you could just do.

RegisterNetEvent('maxAmmo')
AddEventHandler('maxAmmo', function()
    local ped = GetPlayerPed(-1)
    local wep = GetSelectedPedWeapon(ped)
    GetMaxAmmo(ped, wep, 1000)
end)

Not sure if the code would work just a thought. This was written on my phone so don’t take my word for it.

1 Like