Garry's Mod

Jobs.lua

Submitted by ycb_x_beast_x, , Thread ID: 158111

Thread Closed

RE: Jobs.lua

OP
This post was last modified: 11-02-2020, 01:01 AM by ycb_x_beast_x
#4
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................

Users browsing this thread: 1 Guest(s)