[TTT] Stored ammo (type and amount)

How can I get AND set the stored ammo type and amount of a player’s weapon?

Thanks in advance!

You would have to store it upon disconnect into database using sqlite.
Then on initialize or any other preferable hook, you can fetch it and apply to players.

Or, if you don’t mean ‘stored’ as in database storing,

Weapon:GetPrimaryAmmoType

Weapon:GetSecondaryAmmoType

Player:GetAmmoCount

Weapon:Clip1

Weapon:Clip2

[editline]26th March 2016[/editline]

Player:SetAmmo

I forgot to explain exactly what I need, sry. (That’s not what I needed)

Exactly what I needed, thank you!

Thank you both for your reply.