πbuilderx.pl.onnoclip
π₯ π¦ππ₯π©ππ₯
builderx.pl.onnoclip( α΅Λ‘α΅ΚΈα΅Κ³ pl)
βΈ Parameters
ply pl
player object
bool state
returns true if player enters noclip mode; false if noclip taken away
βΈ Description
Runs when a player uses the noclip chat command (!fly) to enter / exit noclip in build mode.
βΈ Notes
Will NOT be called if player uses an outside method to enter noclip such as: ulx noclip, darkrp fly mode, etc.
βΈ Example
local function your_hook( pl, state )
// your custom hook function here
end
hook.Add( 'builderx.pl.onnoclip', 'your_hook_id', your_hook )hook.Add( 'builderx.pl.onnoclip', 'your_hook_id', function( pl, state )
// your custom hook function here
end )local function your_hook( pl, state )
// your custom hook function here
end
rhook.new.rlib( 'builderx_mode_onnoclip', your_hook )Last updated