Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.hook.PlayerAmmoChanged

S๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

๐Ÿ”— External
hook.add("PlayerAmmoChanged", "name", function(ply, ammoID, oldcount, newcount) end)
View on GitHub|lua/starfall/libs_sh/hook.lua:502
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Called when a player's reserve ammo count changes.

Parameters

NameTypeDescription
plyPlayerThe player whose ammo is being affected.
ammoIDnumberThe ammo type ID
oldcountnumberPrevious ammo count
newcountnumberThe new ammo count

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.