nanos world API Reference Unofficial documentation
Event Shared

Weapon.AmmoBagChange

When the Ammo Bag is changed, by reloading or manually setting through scripting

Syntax

Lua
Weapon.Subscribe("AmmoBagChange", function(self, old_ammo_bag, new_ammo_bag)
    -- il tuo codice
end)

Arguments

Name Type Default Description
self Weapon
old_ammo_bag integer
new_ammo_bag integer