Garry's Mod
Jobs.lua
Submitted by ycb_x_beast_x, 10-02-2020, 01:08 AM, Thread ID: 158111
Thread Closed
10-02-2020, 01:08 AM
#1 Alright so i am struggling with making jobs on my gmod darkrp server. I have tried to use this site "https://csite.io/tools/gmod-darkrp-job" And it still wont work, does anyone have a jobs.lua or atleast willing to help me please?
RE: Jobs.lua
10-02-2020, 01:46 AM
#2 Can you post the code for the job you're trying to create so we can help you at?
RE: Jobs.lua
10-02-2020, 05:48 PM
#3 10-02-2020, 01:08 AMycb_x_beast_x Wrote: Alright so i am struggling with making jobs on my gmod darkrp server. I have tried to use this site "https://csite.io/tools/gmod-darkrp-job" And it still wont work, does anyone have a jobs.lua or atleast willing to help me please?
you don't really need to use csite you can do it your self, it is easy to make it,you have tutoriels on ytb
RE: Jobs.lua
Im trying to make alot of jobs for my gmod server, I will add the jobs.lua in like 10 minutes
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(20, 150, 20, 255),
model = "models/player/monk.mdl",
description = [[Sell weapons to citizens.]],
weapons = {},
command = "thief",
max = 3,
salary = 25,
admin = 0,
vote = false,
hasLicense = true,
category = "Criminals",
})
TEAM_SECURITYGUARD = DarkRP.createJob("Security Guard", {
color = Color(80, 214, 190, 255),
model = {
"models/player/barney.mdl",
"models/player/barney.mdl"
},
description = [[This person gets personally hired by shop owners with the task to protect their shop.]],
weapons = {"stunstick"},
command = "securityguard",
max = 3,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Civilians"
})
TEAM_BANKSECURITY = DarkRP.createJob("Bank Security", {
color = Color(40, 126, 190, 255),
model = {
"models/player/police.mdl",
"models/player/police.mdl"
},
description = [[This person protects the bank from getting robbed. Government forces may also assisst.]],
weapons = {"m9k_ragingbull", "stunstick"},
command = "banksecurity",
max = 1,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Civilians",
customCheck = function(ply)
return ply:GetUTimeTotalTime() >= 60*20
end,
CustomCheckFailMsg = "You need to play 20 minutes in order to use this job!"
})
TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(122, 75, 75, 255),
model = {"models/player/corpse1.mdl", "models/player/corpse1.mdl"},
description = [[A person who has no life, meaning no job, house, family and etc...]],
weapons = {"weapon_bugbait"},
command = "tramp",
max = 16,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Civilians",
hobo = true
})
TEAM_POLICE = DarkRP.createJob("Police", {
color = Color(16, 181, 217, 255),
model = {
"models/player/londoncop/londoncop_02.mdl",
"models/player/londoncop/londoncop_04.mdl",
"models/player/londoncop/londoncop_05.mdl",
"models/player/londoncop/londoncop_06.mdl",
"models/player/londoncop/londoncop_07.mdl"
},
description = [[The civil force of the city responsible for the prevention and detection of crime and the maintenance of public order.]],
weapons = {"stunstick", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram"},
command = "police",
max = 10,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Government",
PlayerSpawn = function(ply)
ply:SetArmor(15)
end,
customCheck = function(ply)
return ply:GetUTimeTotalTime() >= 60*30
end,
CustomCheckFailMsg = "You need to play 30 minutes in order to use this job!"
})
That wont work ^^ I am not sure why................
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(20, 150, 20, 255),
model = "models/player/monk.mdl",
description = [[Sell weapons to citizens.]],
weapons = {},
command = "thief",
max = 3,
salary = 25,
admin = 0,
vote = false,
hasLicense = true,
category = "Criminals",
})
TEAM_SECURITYGUARD = DarkRP.createJob("Security Guard", {
color = Color(80, 214, 190, 255),
model = {
"models/player/barney.mdl",
"models/player/barney.mdl"
},
description = [[This person gets personally hired by shop owners with the task to protect their shop.]],
weapons = {"stunstick"},
command = "securityguard",
max = 3,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Civilians"
})
TEAM_BANKSECURITY = DarkRP.createJob("Bank Security", {
color = Color(40, 126, 190, 255),
model = {
"models/player/police.mdl",
"models/player/police.mdl"
},
description = [[This person protects the bank from getting robbed. Government forces may also assisst.]],
weapons = {"m9k_ragingbull", "stunstick"},
command = "banksecurity",
max = 1,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Civilians",
customCheck = function(ply)
return ply:GetUTimeTotalTime() >= 60*20
end,
CustomCheckFailMsg = "You need to play 20 minutes in order to use this job!"
})
TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(122, 75, 75, 255),
model = {"models/player/corpse1.mdl", "models/player/corpse1.mdl"},
description = [[A person who has no life, meaning no job, house, family and etc...]],
weapons = {"weapon_bugbait"},
command = "tramp",
max = 16,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Civilians",
hobo = true
})
TEAM_POLICE = DarkRP.createJob("Police", {
color = Color(16, 181, 217, 255),
model = {
"models/player/londoncop/londoncop_02.mdl",
"models/player/londoncop/londoncop_04.mdl",
"models/player/londoncop/londoncop_05.mdl",
"models/player/londoncop/londoncop_06.mdl",
"models/player/londoncop/londoncop_07.mdl"
},
description = [[The civil force of the city responsible for the prevention and detection of crime and the maintenance of public order.]],
weapons = {"stunstick", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram"},
command = "police",
max = 10,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Government",
PlayerSpawn = function(ply)
ply:SetArmor(15)
end,
customCheck = function(ply)
return ply:GetUTimeTotalTime() >= 60*30
end,
CustomCheckFailMsg = "You need to play 30 minutes in order to use this job!"
})
That wont work ^^ I am not sure why................
Users browsing this thread: 1 Guest(s)