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

SFEX.hook.PlayerSwitchFlashlight

S๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

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

Description

Called when a players turns their flashlight on or off

Parameters

NameTypeDescription
plyPlayerPlayer switching flashlight
statebooleanNew flashlight state. True if on.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.