builderx.mode.onswitch
🟥 𝗦𝗘𝗥𝗩𝗘𝗥
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
Last updated