Builder-X
Browse ScriptsDownload RLIB
v2.x
v2.x
  • Introduction
  • Showcase
  • Changelog
    • β—Ύ2.0.1.0
    • β—Ύ2.0.0.0
  • FAQ
    • β—ΎAddon Won't Show
    • β—ΎIncompatible Addons
    • β—ΎDamage Issues
    • β—ΎModified Script
    • β—ΎRefunds
    • β—ΎScript Errors
    • β—ΎWhen Are Updates?
  • ❱ Setup
    • β—ΎInstall
    • β—ΎVerify
    • β—ΎWorkshop
    • β—ΎDocs/Web
  • ❱ Configuration
    • β—ΎEnv
    • β—ΎFonts
    • β—ΎLanguages
    • β—ΎSettings
      • β–Έsh_cfg_bg
  • ❱ First Use
    • β—ΎBinds
  • ❱ Developers
    • β—ΎFunctions
      • 🟦GetBuild
      • οΏ½οΏ½ SetBuild
      • 🟦GetDmg
      • 🟦SetDmg
      • 🟦AddDmg
    • β—ΎHooks
      • πŸ”—builderx.mode.onswitch
      • πŸ”—builderx.pl.ondamage
      • πŸ”—builderx.pl.onjoin
      • πŸ”—builderx.pl.onnoclip
Powered by GitBook
On this page
  • β–Έ Parameters
  • β–Έ Description
  • β–Έ Notes
  • β–Έ Example
  1. ❱ Developers
  2. Hooks

builderx.pl.onnoclip

πŸŸ₯ π—¦π—˜π—₯π—©π—˜π—₯

Previousbuilderx.pl.onjoin

Last updated 4 years ago

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 )
β—Ύ
πŸ”—
ᡖˑᡃʸᡉʳ