Properly configuring your Garry’s Mod server is essential for creating the best experience for your players. This guide walks you through the various configuration files and options available on the Wasabi Hosting Gamepanel.
The server.cfg file is the primary configuration file for your Garry’s Mod server. Here’s a basic template:
Copy
// Server Identificationhostname "Your Server Name"sv_password "" // Password to join the server (leave empty for public)sv_region 0 // 0=US East, 1=US West, 2=South America, 3=Europe, 4=Asia, 5=Australia, 6=Middle East, 7=Africasv_lan 0 // Set to 1 for LAN serversrcon_password "YourRconPassword" // Remote console password (CHANGE THIS!)sv_logfile 1 // Enable loggingsv_logbans 1 // Log banssv_logecho 1 // Echo log to consolesv_log_onefile 0 // Use multiple log filessv_noclipspeed 5 // Noclip speedsv_noclipaccelerate 5 // Noclip acceleration// Network Settingssv_minrate 20000 // Min bandwidth ratesv_maxrate 100000 // Max bandwidth ratesv_mincmdrate 33 // Min cmd ratesv_maxcmdrate 66 // Max cmd ratesv_minupdaterate 33 // Min update ratesv_maxupdaterate 66 // Max update ratenet_maxfilesize 64 // Max file size for downloads// Content Settingssv_allowdownload 1 // Allow clients to download contentsv_allowupload 0 // Disable uploading (prevents exploits)sv_downloadurl "" // FastDL URL (if you have one)// Gameplay Settingssbox_noclip 1 // Allow noclipsbox_godmode 0 // Disable godmodesbox_plpldamage 1 // Allow player vs player damagesbox_maxprops 200 // Maximum props per playersbox_maxragdolls 10 // Maximum ragdolls per playersbox_maxnpcs 10 // Maximum NPCs per playersbox_maxballoons 20 // Maximum balloons per playersbox_maxeffects 20 // Maximum effects per playersbox_maxdynamite 10 // Maximum dynamite per playersbox_maxlamps 10 // Maximum lamps per playersbox_maxthrusters 20 // Maximum thrusters per playersbox_maxwheels 20 // Maximum wheels per playersbox_maxhoverballs 20 // Maximum hoverballs per playersbox_maxvehicles 6 // Maximum vehicles per playersbox_maxbuttons 20 // Maximum buttons per playersbox_maxsents 20 // Maximum scripted entities per playersbox_maxemitters 5 // Maximum emitters per playersbox_maxspawners 3 // Maximum spawners per playersbox_maxturrets 2 // Maximum turrets per player// Performance Settingsdecalfrequency 60 // Decal refresh ratesv_friction 8 // World frictionsv_defaultgravity 600 // World gravitysv_sticktoground 0 // Stick to ground (physics)sv_maxvelocity 3500 // Maximum velocitysv_accelerate 10 // Acceleratesv_airaccelerate 10 // Air accelerate// Admin Settingssv_alltalk 0 // 0=Team chat, 1=All chatmp_friendlyfire 0 // Disable friendly fire// Execute Additional Config Filesexec banned_user.cfg // Execute banned users listexec banned_ip.cfg // Execute banned IPs list// Message of the Day (MOTD)sv_loadingurl "https://yourwebsite.com/motd.html" // Web-based MOTD// Add any additional configurations below this line
Always change the default rcon_password! Using a default or easy-to-guess password exposes your server to potential hijacking.
-- Economy settingsGM.Config.currency = "$" -- Currency symbolGM.Config.lockdowndelay = 120 -- Time in seconds before lockdown ends automaticallyGM.Config.maxdoors = 20 -- Maximum doors a player can ownGM.Config.wallettax = 0 -- Percentage of money a player loses when they dieGM.Config.startingmoney = 1000 -- Starting money for new playersGM.Config.pricemin = 50 -- Minimum price for items in F4 menu-- Arrest and wanted settingsGM.Config.arrestspeed = 120 -- Walking speed when arrestedGM.Config.arresttime = 120 -- Time in jailGM.Config.wantedtime = 120 -- Time player is wanted forGM.Config.jailtimer = true -- Show jail timerGM.Config.telefromjail = false -- Allow teleporting from jailGM.Config.teletojail = true -- Teleport to jail when arrestedGM.Config.needwantedforarrest = true -- Players need to be wanted to be arrested-- Job settingsGM.Config.maxcopsalary = 100 -- Maximum salary for policeGM.Config.maxmayorsalary = 150 -- Maximum salary for mayorGM.Config.maxjailpos = 10 -- Maximum jail positionsGM.Config.norespawn = true -- Don't respawn players who change jobsGM.Config.respawntime = 1 -- Minimum time before respawningGM.Config.changejobtime = 10 -- Time between job changes (in seconds)-- Gameplay settingsGM.Config.npckillpay = 10 -- Money reward for killing an NPCGM.Config.paydelay = 160 -- Time between salary payments (in seconds)GM.Config.pocketitems = 10 -- Maximum items in pocketGM.Config.strictsuicide = true -- Prevent /kill command abuseGM.Config.telefromjail = false -- Can teleport from jailGM.Config.enablebuypocket = true -- Allow buying pocket upgradeGM.Config.weaponshipment = true -- Enable weapon shipmentsGM.Config.pocket = true -- Enable pocketGM.Config.chatsounds = true -- Enable sounds when players chatGM.Config.deathfee = 30 -- Money lost on deathGM.Config.allowropseweld = true -- Allow rope constraint welding
Custom Jobs Configuration Example
Copy
-- Example custom jobs in jobs.luaTEAM_POLICE = DarkRP.createJob("Police Officer", { color = Color(25, 25, 170, 255), model = {"models/player/police.mdl", "models/player/police_fem.mdl"}, description = [[Protect and serve the city. Arrest lawbreakers and keep the city safe.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, command = "police", max = 4, salary = 100, admin = 0, vote = false, hasLicense = true, category = "Civil Protection",})TEAM_MAYOR = DarkRP.createJob("Mayor", { color = Color(150, 20, 20, 255), model = {"models/player/breen.mdl"}, description = [[The Mayor of the city.You make the laws and manage the Police Force.Type /joblaws to set laws.]], weapons = {}, command = "mayor", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, category = "Civil Protection",})TEAM_GUN = DarkRP.createJob("Gun Dealer", { color = Color(255, 140, 0, 255), model = {"models/player/monk.mdl"}, description = [[A Gun Dealer is the only person who can sell guns to other people.Make sure you aren't caught selling illegal firearms to terrorists or cops!]], weapons = {}, command = "gundealer", max = 2, salary = 85, admin = 0, vote = false, hasLicense = false, category = "Citizens",})
Custom Shipments & Entities
Copy
-- Example shipments in shipments.luaDarkRP.createShipment("Desert Eagle", { model = "models/weapons/w_pist_deagle.mdl", entity = "weapon_deagle2", price = 215, amount = 10, separate = true, pricesep = 215, noship = false, allowed = {TEAM_GUN}, category = "Pistols",})DarkRP.createShipment("AK47", { model = "models/weapons/w_rif_ak47.mdl", entity = "weapon_ak472", price = 2450, amount = 10, separate = false, pricesep = 0, noship = false, allowed = {TEAM_GUN}, category = "Rifles",})-- Example entities in entities.luaDarkRP.createEntity("Money Printer", { ent = "money_printer", model = "models/props_c17/consolebox01a.mdl", price = 1000, max = 2, cmd = "buymoneyprinter", allowed = {TEAM_GANGSTER, TEAM_MOB}, category = "Illegal",})DarkRP.createEntity("Drug Lab", { ent = "drug_lab", model = "models/props_lab/crematorcase.mdl", price = 400, max = 3, cmd = "buydruglab", allowed = {TEAM_GANGSTER, TEAM_MOB}, category = "Illegal",})
MySQL Configuration
If your server uses a MySQL database for DarkRP data, configure it in /garrysmod/addons/darkrpmodification/lua/darkrp_config/mysql.lua:
-- Economy settingsGM.Config.currency = "$" -- Currency symbolGM.Config.lockdowndelay = 120 -- Time in seconds before lockdown ends automaticallyGM.Config.maxdoors = 20 -- Maximum doors a player can ownGM.Config.wallettax = 0 -- Percentage of money a player loses when they dieGM.Config.startingmoney = 1000 -- Starting money for new playersGM.Config.pricemin = 50 -- Minimum price for items in F4 menu-- Arrest and wanted settingsGM.Config.arrestspeed = 120 -- Walking speed when arrestedGM.Config.arresttime = 120 -- Time in jailGM.Config.wantedtime = 120 -- Time player is wanted forGM.Config.jailtimer = true -- Show jail timerGM.Config.telefromjail = false -- Allow teleporting from jailGM.Config.teletojail = true -- Teleport to jail when arrestedGM.Config.needwantedforarrest = true -- Players need to be wanted to be arrested-- Job settingsGM.Config.maxcopsalary = 100 -- Maximum salary for policeGM.Config.maxmayorsalary = 150 -- Maximum salary for mayorGM.Config.maxjailpos = 10 -- Maximum jail positionsGM.Config.norespawn = true -- Don't respawn players who change jobsGM.Config.respawntime = 1 -- Minimum time before respawningGM.Config.changejobtime = 10 -- Time between job changes (in seconds)-- Gameplay settingsGM.Config.npckillpay = 10 -- Money reward for killing an NPCGM.Config.paydelay = 160 -- Time between salary payments (in seconds)GM.Config.pocketitems = 10 -- Maximum items in pocketGM.Config.strictsuicide = true -- Prevent /kill command abuseGM.Config.telefromjail = false -- Can teleport from jailGM.Config.enablebuypocket = true -- Allow buying pocket upgradeGM.Config.weaponshipment = true -- Enable weapon shipmentsGM.Config.pocket = true -- Enable pocketGM.Config.chatsounds = true -- Enable sounds when players chatGM.Config.deathfee = 30 -- Money lost on deathGM.Config.allowropseweld = true -- Allow rope constraint welding
Custom Jobs Configuration Example
Copy
-- Example custom jobs in jobs.luaTEAM_POLICE = DarkRP.createJob("Police Officer", { color = Color(25, 25, 170, 255), model = {"models/player/police.mdl", "models/player/police_fem.mdl"}, description = [[Protect and serve the city. Arrest lawbreakers and keep the city safe.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, command = "police", max = 4, salary = 100, admin = 0, vote = false, hasLicense = true, category = "Civil Protection",})TEAM_MAYOR = DarkRP.createJob("Mayor", { color = Color(150, 20, 20, 255), model = {"models/player/breen.mdl"}, description = [[The Mayor of the city.You make the laws and manage the Police Force.Type /joblaws to set laws.]], weapons = {}, command = "mayor", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, category = "Civil Protection",})TEAM_GUN = DarkRP.createJob("Gun Dealer", { color = Color(255, 140, 0, 255), model = {"models/player/monk.mdl"}, description = [[A Gun Dealer is the only person who can sell guns to other people.Make sure you aren't caught selling illegal firearms to terrorists or cops!]], weapons = {}, command = "gundealer", max = 2, salary = 85, admin = 0, vote = false, hasLicense = false, category = "Citizens",})
Custom Shipments & Entities
Copy
-- Example shipments in shipments.luaDarkRP.createShipment("Desert Eagle", { model = "models/weapons/w_pist_deagle.mdl", entity = "weapon_deagle2", price = 215, amount = 10, separate = true, pricesep = 215, noship = false, allowed = {TEAM_GUN}, category = "Pistols",})DarkRP.createShipment("AK47", { model = "models/weapons/w_rif_ak47.mdl", entity = "weapon_ak472", price = 2450, amount = 10, separate = false, pricesep = 0, noship = false, allowed = {TEAM_GUN}, category = "Rifles",})-- Example entities in entities.luaDarkRP.createEntity("Money Printer", { ent = "money_printer", model = "models/props_c17/consolebox01a.mdl", price = 1000, max = 2, cmd = "buymoneyprinter", allowed = {TEAM_GANGSTER, TEAM_MOB}, category = "Illegal",})DarkRP.createEntity("Drug Lab", { ent = "drug_lab", model = "models/props_lab/crematorcase.mdl", price = 400, max = 3, cmd = "buydruglab", allowed = {TEAM_GANGSTER, TEAM_MOB}, category = "Illegal",})
MySQL Configuration
If your server uses a MySQL database for DarkRP data, configure it in /garrysmod/addons/darkrpmodification/lua/darkrp_config/mysql.lua:
sv_logfile 1 // Enable loggingsv_logbans 1 // Log banssv_logecho 1 // Echo log information to consolesv_log_onefile 0 // Don't save all logs to a single filelog on // Turn logging on
sv_minrate 20000 // Minimum client ratesv_maxrate 100000 // Maximum client ratesv_maxupdaterate 66 // Maximum updates per secondsv_maxcmdrate 66 // Maximum commands per secondsv_client_min_interp_ratio -1 // Client interpolation ratio minimumsv_client_max_interp_ratio 2 // Client interpolation ratio maximumfps_max 600 // Maximum server FPSsv_maxusrcmdprocessticks 24 // Maximum user command process tickssv_stats 0 // Disable server stats
For more comprehensive DDoS protection, consider using our Firewall Manager.
By following this configuration guide, you can create a well-optimized and properly configured Garry’s Mod server on Wasabi Hosting. If you need further assistance, contact our support team.
Assistant
Responses are generated using AI and may contain mistakes.
Properly configuring your Garry’s Mod server is essential for creating the best experience for your players. This guide walks you through the various configuration files and options available on the Wasabi Hosting Gamepanel.
The server.cfg file is the primary configuration file for your Garry’s Mod server. Here’s a basic template:
Copy
// Server Identificationhostname "Your Server Name"sv_password "" // Password to join the server (leave empty for public)sv_region 0 // 0=US East, 1=US West, 2=South America, 3=Europe, 4=Asia, 5=Australia, 6=Middle East, 7=Africasv_lan 0 // Set to 1 for LAN serversrcon_password "YourRconPassword" // Remote console password (CHANGE THIS!)sv_logfile 1 // Enable loggingsv_logbans 1 // Log banssv_logecho 1 // Echo log to consolesv_log_onefile 0 // Use multiple log filessv_noclipspeed 5 // Noclip speedsv_noclipaccelerate 5 // Noclip acceleration// Network Settingssv_minrate 20000 // Min bandwidth ratesv_maxrate 100000 // Max bandwidth ratesv_mincmdrate 33 // Min cmd ratesv_maxcmdrate 66 // Max cmd ratesv_minupdaterate 33 // Min update ratesv_maxupdaterate 66 // Max update ratenet_maxfilesize 64 // Max file size for downloads// Content Settingssv_allowdownload 1 // Allow clients to download contentsv_allowupload 0 // Disable uploading (prevents exploits)sv_downloadurl "" // FastDL URL (if you have one)// Gameplay Settingssbox_noclip 1 // Allow noclipsbox_godmode 0 // Disable godmodesbox_plpldamage 1 // Allow player vs player damagesbox_maxprops 200 // Maximum props per playersbox_maxragdolls 10 // Maximum ragdolls per playersbox_maxnpcs 10 // Maximum NPCs per playersbox_maxballoons 20 // Maximum balloons per playersbox_maxeffects 20 // Maximum effects per playersbox_maxdynamite 10 // Maximum dynamite per playersbox_maxlamps 10 // Maximum lamps per playersbox_maxthrusters 20 // Maximum thrusters per playersbox_maxwheels 20 // Maximum wheels per playersbox_maxhoverballs 20 // Maximum hoverballs per playersbox_maxvehicles 6 // Maximum vehicles per playersbox_maxbuttons 20 // Maximum buttons per playersbox_maxsents 20 // Maximum scripted entities per playersbox_maxemitters 5 // Maximum emitters per playersbox_maxspawners 3 // Maximum spawners per playersbox_maxturrets 2 // Maximum turrets per player// Performance Settingsdecalfrequency 60 // Decal refresh ratesv_friction 8 // World frictionsv_defaultgravity 600 // World gravitysv_sticktoground 0 // Stick to ground (physics)sv_maxvelocity 3500 // Maximum velocitysv_accelerate 10 // Acceleratesv_airaccelerate 10 // Air accelerate// Admin Settingssv_alltalk 0 // 0=Team chat, 1=All chatmp_friendlyfire 0 // Disable friendly fire// Execute Additional Config Filesexec banned_user.cfg // Execute banned users listexec banned_ip.cfg // Execute banned IPs list// Message of the Day (MOTD)sv_loadingurl "https://yourwebsite.com/motd.html" // Web-based MOTD// Add any additional configurations below this line
Always change the default rcon_password! Using a default or easy-to-guess password exposes your server to potential hijacking.
-- Economy settingsGM.Config.currency = "$" -- Currency symbolGM.Config.lockdowndelay = 120 -- Time in seconds before lockdown ends automaticallyGM.Config.maxdoors = 20 -- Maximum doors a player can ownGM.Config.wallettax = 0 -- Percentage of money a player loses when they dieGM.Config.startingmoney = 1000 -- Starting money for new playersGM.Config.pricemin = 50 -- Minimum price for items in F4 menu-- Arrest and wanted settingsGM.Config.arrestspeed = 120 -- Walking speed when arrestedGM.Config.arresttime = 120 -- Time in jailGM.Config.wantedtime = 120 -- Time player is wanted forGM.Config.jailtimer = true -- Show jail timerGM.Config.telefromjail = false -- Allow teleporting from jailGM.Config.teletojail = true -- Teleport to jail when arrestedGM.Config.needwantedforarrest = true -- Players need to be wanted to be arrested-- Job settingsGM.Config.maxcopsalary = 100 -- Maximum salary for policeGM.Config.maxmayorsalary = 150 -- Maximum salary for mayorGM.Config.maxjailpos = 10 -- Maximum jail positionsGM.Config.norespawn = true -- Don't respawn players who change jobsGM.Config.respawntime = 1 -- Minimum time before respawningGM.Config.changejobtime = 10 -- Time between job changes (in seconds)-- Gameplay settingsGM.Config.npckillpay = 10 -- Money reward for killing an NPCGM.Config.paydelay = 160 -- Time between salary payments (in seconds)GM.Config.pocketitems = 10 -- Maximum items in pocketGM.Config.strictsuicide = true -- Prevent /kill command abuseGM.Config.telefromjail = false -- Can teleport from jailGM.Config.enablebuypocket = true -- Allow buying pocket upgradeGM.Config.weaponshipment = true -- Enable weapon shipmentsGM.Config.pocket = true -- Enable pocketGM.Config.chatsounds = true -- Enable sounds when players chatGM.Config.deathfee = 30 -- Money lost on deathGM.Config.allowropseweld = true -- Allow rope constraint welding
Custom Jobs Configuration Example
Copy
-- Example custom jobs in jobs.luaTEAM_POLICE = DarkRP.createJob("Police Officer", { color = Color(25, 25, 170, 255), model = {"models/player/police.mdl", "models/player/police_fem.mdl"}, description = [[Protect and serve the city. Arrest lawbreakers and keep the city safe.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, command = "police", max = 4, salary = 100, admin = 0, vote = false, hasLicense = true, category = "Civil Protection",})TEAM_MAYOR = DarkRP.createJob("Mayor", { color = Color(150, 20, 20, 255), model = {"models/player/breen.mdl"}, description = [[The Mayor of the city.You make the laws and manage the Police Force.Type /joblaws to set laws.]], weapons = {}, command = "mayor", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, category = "Civil Protection",})TEAM_GUN = DarkRP.createJob("Gun Dealer", { color = Color(255, 140, 0, 255), model = {"models/player/monk.mdl"}, description = [[A Gun Dealer is the only person who can sell guns to other people.Make sure you aren't caught selling illegal firearms to terrorists or cops!]], weapons = {}, command = "gundealer", max = 2, salary = 85, admin = 0, vote = false, hasLicense = false, category = "Citizens",})
Custom Shipments & Entities
Copy
-- Example shipments in shipments.luaDarkRP.createShipment("Desert Eagle", { model = "models/weapons/w_pist_deagle.mdl", entity = "weapon_deagle2", price = 215, amount = 10, separate = true, pricesep = 215, noship = false, allowed = {TEAM_GUN}, category = "Pistols",})DarkRP.createShipment("AK47", { model = "models/weapons/w_rif_ak47.mdl", entity = "weapon_ak472", price = 2450, amount = 10, separate = false, pricesep = 0, noship = false, allowed = {TEAM_GUN}, category = "Rifles",})-- Example entities in entities.luaDarkRP.createEntity("Money Printer", { ent = "money_printer", model = "models/props_c17/consolebox01a.mdl", price = 1000, max = 2, cmd = "buymoneyprinter", allowed = {TEAM_GANGSTER, TEAM_MOB}, category = "Illegal",})DarkRP.createEntity("Drug Lab", { ent = "drug_lab", model = "models/props_lab/crematorcase.mdl", price = 400, max = 3, cmd = "buydruglab", allowed = {TEAM_GANGSTER, TEAM_MOB}, category = "Illegal",})
MySQL Configuration
If your server uses a MySQL database for DarkRP data, configure it in /garrysmod/addons/darkrpmodification/lua/darkrp_config/mysql.lua:
-- Economy settingsGM.Config.currency = "$" -- Currency symbolGM.Config.lockdowndelay = 120 -- Time in seconds before lockdown ends automaticallyGM.Config.maxdoors = 20 -- Maximum doors a player can ownGM.Config.wallettax = 0 -- Percentage of money a player loses when they dieGM.Config.startingmoney = 1000 -- Starting money for new playersGM.Config.pricemin = 50 -- Minimum price for items in F4 menu-- Arrest and wanted settingsGM.Config.arrestspeed = 120 -- Walking speed when arrestedGM.Config.arresttime = 120 -- Time in jailGM.Config.wantedtime = 120 -- Time player is wanted forGM.Config.jailtimer = true -- Show jail timerGM.Config.telefromjail = false -- Allow teleporting from jailGM.Config.teletojail = true -- Teleport to jail when arrestedGM.Config.needwantedforarrest = true -- Players need to be wanted to be arrested-- Job settingsGM.Config.maxcopsalary = 100 -- Maximum salary for policeGM.Config.maxmayorsalary = 150 -- Maximum salary for mayorGM.Config.maxjailpos = 10 -- Maximum jail positionsGM.Config.norespawn = true -- Don't respawn players who change jobsGM.Config.respawntime = 1 -- Minimum time before respawningGM.Config.changejobtime = 10 -- Time between job changes (in seconds)-- Gameplay settingsGM.Config.npckillpay = 10 -- Money reward for killing an NPCGM.Config.paydelay = 160 -- Time between salary payments (in seconds)GM.Config.pocketitems = 10 -- Maximum items in pocketGM.Config.strictsuicide = true -- Prevent /kill command abuseGM.Config.telefromjail = false -- Can teleport from jailGM.Config.enablebuypocket = true -- Allow buying pocket upgradeGM.Config.weaponshipment = true -- Enable weapon shipmentsGM.Config.pocket = true -- Enable pocketGM.Config.chatsounds = true -- Enable sounds when players chatGM.Config.deathfee = 30 -- Money lost on deathGM.Config.allowropseweld = true -- Allow rope constraint welding
Custom Jobs Configuration Example
Copy
-- Example custom jobs in jobs.luaTEAM_POLICE = DarkRP.createJob("Police Officer", { color = Color(25, 25, 170, 255), model = {"models/player/police.mdl", "models/player/police_fem.mdl"}, description = [[Protect and serve the city. Arrest lawbreakers and keep the city safe.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, command = "police", max = 4, salary = 100, admin = 0, vote = false, hasLicense = true, category = "Civil Protection",})TEAM_MAYOR = DarkRP.createJob("Mayor", { color = Color(150, 20, 20, 255), model = {"models/player/breen.mdl"}, description = [[The Mayor of the city.You make the laws and manage the Police Force.Type /joblaws to set laws.]], weapons = {}, command = "mayor", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, category = "Civil Protection",})TEAM_GUN = DarkRP.createJob("Gun Dealer", { color = Color(255, 140, 0, 255), model = {"models/player/monk.mdl"}, description = [[A Gun Dealer is the only person who can sell guns to other people.Make sure you aren't caught selling illegal firearms to terrorists or cops!]], weapons = {}, command = "gundealer", max = 2, salary = 85, admin = 0, vote = false, hasLicense = false, category = "Citizens",})
Custom Shipments & Entities
Copy
-- Example shipments in shipments.luaDarkRP.createShipment("Desert Eagle", { model = "models/weapons/w_pist_deagle.mdl", entity = "weapon_deagle2", price = 215, amount = 10, separate = true, pricesep = 215, noship = false, allowed = {TEAM_GUN}, category = "Pistols",})DarkRP.createShipment("AK47", { model = "models/weapons/w_rif_ak47.mdl", entity = "weapon_ak472", price = 2450, amount = 10, separate = false, pricesep = 0, noship = false, allowed = {TEAM_GUN}, category = "Rifles",})-- Example entities in entities.luaDarkRP.createEntity("Money Printer", { ent = "money_printer", model = "models/props_c17/consolebox01a.mdl", price = 1000, max = 2, cmd = "buymoneyprinter", allowed = {TEAM_GANGSTER, TEAM_MOB}, category = "Illegal",})DarkRP.createEntity("Drug Lab", { ent = "drug_lab", model = "models/props_lab/crematorcase.mdl", price = 400, max = 3, cmd = "buydruglab", allowed = {TEAM_GANGSTER, TEAM_MOB}, category = "Illegal",})
MySQL Configuration
If your server uses a MySQL database for DarkRP data, configure it in /garrysmod/addons/darkrpmodification/lua/darkrp_config/mysql.lua:
sv_logfile 1 // Enable loggingsv_logbans 1 // Log banssv_logecho 1 // Echo log information to consolesv_log_onefile 0 // Don't save all logs to a single filelog on // Turn logging on
sv_minrate 20000 // Minimum client ratesv_maxrate 100000 // Maximum client ratesv_maxupdaterate 66 // Maximum updates per secondsv_maxcmdrate 66 // Maximum commands per secondsv_client_min_interp_ratio -1 // Client interpolation ratio minimumsv_client_max_interp_ratio 2 // Client interpolation ratio maximumfps_max 600 // Maximum server FPSsv_maxusrcmdprocessticks 24 // Maximum user command process tickssv_stats 0 // Disable server stats
For more comprehensive DDoS protection, consider using our Firewall Manager.
By following this configuration guide, you can create a well-optimized and properly configured Garry’s Mod server on Wasabi Hosting. If you need further assistance, contact our support team.
Assistant
Responses are generated using AI and may contain mistakes.