Garry's Mod

Garry's Mod

Not enough ratings
[ULX] BuildMode - Extremely fast and flexible!
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun, Roleplay
File Size
Posted
Updated
8.750 KB
27 Jul, 2023 @ 1:08pm
30 Oct, 2023 @ 10:42am
7 Change Notes ( view )

Subscribe to download
[ULX] BuildMode - Extremely fast and flexible!

In 1 collection by тройка
Space collection
101 items
Description
The addon adds the ability for players to toggle buildmode and adds basic features for it to work, supports customization. Basically prevents players with buildmod from dealing damage to other players, as well as other players cannot deal damage to players in buildmode. Players with builmode can use noclip by default.

Features
  1. Universal and easy Developer API.
  2. Multilanguage ( By default supports: en, uk, ru ).
  3. Lightweight, very little code, maximum code performance.

Server-side ConVars
  • ulx_buildmode_timeout <5> - Delay in seconds between switch buildmode or pvp.
  • ulx_buildmode_respawn <1> [0/1] - Respawns player if he leaves buildmode.

Developer API
  • PLAYER:InBuildMode() - A shared player meta function, returns true if the player is in build mode and false if not.
  • PLAYER:SetBuildMode( requestedState, hideNotification, force ) - A server-side player meta function, returns true if the buildmode switch is successful, force forced buildmode switch on player ignoring CanPlayerBuildMode hook, hideNotification hides notifications about buildmode switch.
  • GM:CanPlayerBuildMode( ply, currentState, requestedState ) - A server-side hook, called when a player tries to change the buildmode state, return here true allows the player to change the buildmode state to requested state.
  • GM:PlayerToggledBuildMode( ply, oldState, newState ) - A server-side hook called after a player changes build mode.

Source Code (GitHub): https://github.com/Pika-Software/ulx-buildmode

Tags: pvp/build, build, ulx build, godmode, noclip, no blood, kill, pvp, ulx, fun, safe, free, developer, api
1 Comments
Virgiliu314 26 Apr, 2024 @ 7:58am 
the force buildmode command seems to not work, i have tried several times to force people into pvp after they've killed people while in build