Gaming Discussions

Garry's Mod How to create a server

Submitted by Fabio, , Thread ID: 27402

Thread Closed
07-01-2017, 11:21 AM
#1
I. I have create a server of Garry's Mod. Now i have a problem.Should I set the work. I always see them in the section, "Other". How do I create inside of the sections where I can add a bunch of jobs? Thanks so much!!! Smile

RE: How to create a server

#2
darkmodification\lua\darkrp_customthings\categories.lua
create category and put in job
category = "your category",

like it
TEAM_ENGINEER = DarkRP.createJob("SWAT Engineer", {
color = Color(0, 26, 255, 255),
model = "models/payday2/units/heavy_swat_player.mdl",
description = [[SWAT Engineer, Makes Drones and equipment.]],
weapons = {"fas2_glock20", "keypad_cracker", "weaponchecker", "door_ram", "stunstick", "weapon_cuff_police"},
command = "swatengineer",
max = 1,
salary = 225,
admin = 0,
vote = true,
hasLicense = true,
category = "Civil Protection",
PlayerSpawn = function(ply) ply:SetArmor(75) end
})
1

RE: How to create a server

OP
#3
I see you and let you know. Thank you so much for your help. For if there is a video on the internet that explains it better?

RE: How to create a server

#4
Didn't get it, what do u want exactly !
[Image: xRnLbpm.png]
[Image: Tz6Qsg4.png]

RE: How to create a server

#5
There are a bunch of videos and guides on youtube about it, also google is your friend. Use It

RE: How to create a server

#6
You should probably get a coder if you cant even cant even code a job, no offense. Good luck with your server!

RE: How to create a server

#7
By trying findout a server on the google in my opinion it's not very recommended for new users, cause you might got a virus. About the server you want try to find tutorials on youtube works, i learned a lot of thinks from old friend youtube Smile

RE: How to create a server

#8
If you want to "create inside of the sections where I can add a bunch of jobs" just follow the easy steps below.

1: create the category in "addons/darkrpmodification/lua/darkrp_customthings/categories.lua" by putting that in there and changing the values to your liking

Code:
DarkRP.createCategory{
  name = "Citizens", -- The name of the category.
  categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  color = Color(0, 107, 0, 255), -- The color of the category header.
  canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}

2: Then you want to change the job's category by adding the following line into the code (replace "category_name" with the name of the category you created, once a category is made you can use it in as many jobs as you want)

Code:
category = "category_name",

RE: How to create a server

#9
I'm on hire for 0,99$
Things aren't just right
They are meant to be wrong

[Image: zik944.jpg]

RE: How to create a server

#10
11-01-2017, 10:31 PM
YoutoYokodera Wrote:
I'm on hire for 0,99$

sweet, what do i get for that?
[Image: ZtDsXXv.png]

Users browsing this thread: 4 Guest(s)