[need help]what's the matter in this scripts?

could you tell me why that some line in my scripts doesn’t work?

	 local ped = GetPlayerPed(-1)
	 local weaponHash1 = GetHashKey("weapon_carbinerifle")
     local weaponHash2 = GetHashKey("weapon_grenade")
	 GiveWeaponToPed(ped,weaponHash1, 1000, 0 ,1)
     GiveWeaponToPed(ped,weaponHash2, 10, 0 ,1)
	 SetPedAmmoByType(ped, GetPedAmmoType(ped, weaponHash1), 800)
	 AddAmmoToPed(ped, weaponHash1, 600)
	 AddArmourToPed(ped, 100)

I can’t get 600 or 800 ammo for the Carbine Rifle

What is exactly wrong with it. The ammo or the whole script?

I think there is a max limit for ammo for each gun.