Garry's Mod

Garry's Mod

Not enough ratings
DarkRP Advanced Configuration - Guide
By ItsJustMiaouss
If you want to have a more serious DarkRP server, read this guide! You will learn how to deeply configure DarkRP & Sanbox gamemodes.
You can disable toolgun sound, remove FAdmin teleporation sound, remove the DarkRP chat indicator...
   
Award
Favorite
Favorited
Unfavorite
Introduction
NOTE: The best way to achive this is to not directly edit the DarkRP files. You should create another gamemode based on DarkRP and override the functions. See Derived DarkRP gamemode[github.com].

Through this guide, you will learn how to configure well your DarkRP rolepaly server with very easy steps.

First of all, you'll need to locate the gamemodes folder in your server.
  • Go to your server folder
  • Go to \garrysmod\gamemodes
I. Tool Gun sound client side only
→ If you want the toolgun sound to be available only on the client side.

Folder: gamemodes\sandbox\entities\weapons\gmod_tool
File: shared.lua
Line: 168
Modification:
if CLIENT then self:EmitSound( self.ShootSound ) end
II. Remove teleportation sound and FAdmin particles
→ With FAdmin, installed by default in DarkRP, a sound is played and particles appear. You can then remove them.

Folder: gamemodes\darkrp\gamemode\modules\fadmin\fadmin\playeractions\teleport
File: sv_init.lua
Line: 1
Modification:
local function zapEffect(target) -- Empty end
III. Remove the list of players who hear you speak
→ Remove the list (HUD) of players who hear you speak. It is displayed in the middle left in DarkRP.



Folder: gamemodes\darkrp\gamemode\modules\chat
File: cl_chatlisteners.lua
Line: 44
Modification:
local function drawChatReceivers() -- Empty end
IV. Remove the chat indicator above the players' heads
→ Remove the chat indicator above the players' heads.



Folder: gamemodes\darkrp\gamemode\modules\chatindicator
File: cl_init.lua
Line: 1
Modification:
local function drawIndicator(ply) -- Empty end
V. Enable DarkRP properties (with the contextual menu)
→ Enable DarkRP properties (with the contextual menu). You can now use properties from other addons!



Folder: gamemodes\darkrp\gamemode\modules\base
File: sv_gamemode_functions.lua
Line: 486
Modification:
function GM:CanProperty(ply, property, ent) if ply:IsSuperAdmin() then -- optional: and ply:IsAdmin() return true end DarkRP.notify(ply, 1,4,DarkRP.getPhrase("property_disabled")) return false end
2 Comments
SnabbSpelare Feb 18 @ 4:24pm 
Hey sorry but "Tool Gun sound client side only" isnt located at line 168, it is at 182.
SnabbSpelare Apr 4, 2024 @ 9:49pm 
You can disable Chat Indicator within the darkrpmodification configuration file.