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
  • ā–ø Example
  1. ā± Developers
  2. Hooks

builderx.mode.onswitch

🟄 š—¦š—˜š—„š—©š—˜š—„

PreviousHooksNextbuilderx.pl.ondamage

Last updated 4 years ago

builderx.mode.onswitch( pl, bIsBuild, bIsForced, bHalo, bHud)

ā–ø Parameters

ply pl player object

bool bIsBuild returns true if player switching to build mode; false for pvp mode

bool bIsForced returns true if player forced to switch by admin command (ulx, sam, etc)

bool bHalo returns true if halo enabled on player

bool bHud returns true if player has head hud enabled

ā–ø Description

Runs when player switches modes

ā–ø Example

local function your_hook( pl, bIsBuild, bIsForced, bHalo, bHud )

    // your custom hook function here

end
hook.Add( 'builderx.mode.onswitch', 'your_hook_id', your_hook )
hook.Add( 'builderx.mode.onswitch', 'your_hook_id', function( pl, bIsBuild, bIsForced, bHalo, bHud )

    // your custom hook function here

end )
local function your_hook( pl, bIsBuild, bIsForced, bHalo, bHud )

    // your custom hook function here

end
rhook.new.rlib( 'builderx_mode_onswitch', your_hook )
ā—¾
šŸ”—
įµ–Ė”įµƒŹøįµ‰Ź³
ᵇᵒᵒ˔
ᵇᵒᵒ˔
ᵇᵒᵒ˔
ᵇᵒᵒ˔