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. Functions

SetDmg

๐—ฆ๐—›๐—”๐—ฅ๐—˜๐——

PreviousGetDmgNextAddDmg

Last updated 4 years ago

pl:SetDmg( damage)

โ–ธ Parameters

int damage amount of total damage to set for player

โ–ธ Description

Sets a player's total damage dealt to other players while in Build Mode Used for the punishment system.

โ–ธ Example

local function pl_onjoin( pl )
    pl:SetDmg( 0 )
end
rhook.new.gmod( 'PlayerInitialSpawn', 'builderx_pl_join_init', pl_onjoin )
โ—พ
๐ŸŸฆ
โฟแต˜แตแต‡แต‰สณ