So I am trying to add another job and they don't seem to appear in the F4 Menu. These are my 2 jobs:
[CODE]TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(51, 51, 0, 255),
model = "models/player/group01/cookies114.mdl",
description = [[Steal others players stuff/raid buildings.]],
weapons = {"weapon_physgun", "lockpick", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon"},
command = "thief",
max = 5,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
modelScale = 1.2,
maxpocket = 20,
maps = {"rp_downtown_evilmelon_v1", "gm_construct"},
candemote = false,
mayor = false,
chief = false,
medic = false,
cook = false,
hobo = false,
CanPlayerSuicide = function(ply) return false end,
PlayerCanPickupWeapon = function(ply, weapon) return true end,
PlayerDeath = function(ply, weapon, killer) end,
PlayerLoadout = function(ply) return true end,
PlayerSelectSpawn = function(ply, spawn) end,
PlayerSetModel = function(ply) return "models/grandtheftauto5/trevor.mdl" end,
PlayerSpawn = function(ply) end,
PlayerSpawnProp = function(ply, model) end,
RequiresVote = function(ply, job) for k,v in pairs(player.GetAll()) do if IsValid(v) and v:IsAdmin() then return false end end return true end, -- People need to make a vote when there is no admin around
ShowSpare1 = function(ply) end,
ShowSpare2 = function(ply) end,
canStartVote = function(ply) return ply:Distance(SomeNPC) < 200 end,
canStartVoteReason = "Must be close to some NPC",
buttonColor = Color(255, 255, 255, 255), -- The color of the button in the F4 menu
label = "Thief", -- Optional: the text on the button in the F4 menu
},
TEAM_TAXIDRIVER = DarkRP.createJob("Taxi Driver", {
color = Color(255, 255, 0, 255),
model = "models/player/hostage/hostage_04.mdl",
description = [[Steal others players stuff/raid buildings.]],
weapons = {"weapon_physgun", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon"},
command = "taxidriver",
max = 3,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
modelScale = 1.2,
maxpocket = 20,
maps = {"rp_downtown_evilmelon_v1", "gm_construct"},
candemote = false,
mayor = false,
chief = false,
medic = false,
cook = false,
hobo = false,
CanPlayerSuicide = function(ply) return false end,
PlayerCanPickupWeapon = function(ply, weapon) return true end,
PlayerDeath = function(ply, weapon, killer) end,
PlayerLoadout = function(ply) return true end,
PlayerSelectSpawn = function(ply, spawn) end,
PlayerSetModel = function(ply) return "models/player/hostage/hostage_04.mdl" end,
PlayerSpawn = function(ply) end,
PlayerSpawnProp = function(ply, model) end,
RequiresVote = function(ply, job) for k,v in pairs(player.GetAll()) do if IsValid(v) and v:IsAdmin() then return false end end return true end, -- People need to make a vote when there is no admin around
ShowSpare1 = function(ply) end,
ShowSpare2 = function(ply) end,
canStartVote = function(ply) return ply:Distance(SomeNPC) < 200 end,
canStartVoteReason = "Must be close to some NPC",
buttonColor = Color(255, 255, 255, 255), -- The color of the button in the F4 menu
label = "Taxi Driver", -- Optional: the text on the button in the F4 menu
})[/CODE]
I believe I put it in the wrong place but I am not sure. Please help! Thanks
[QUOTE=LieutExcalibu;44927806]So I am trying to add another job and they don't seem to appear in the F4 Menu. These are my 2 jobs:
[CODE]-code-[/CODE]
I believe I put it in the wrong place but I am not sure. Please help! Thanks[/QUOTE]
From what I can see you are missing a closing parenthesis for TEAM_THIEF
[CODE]TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(51, 51, 0, 255),
model = "models/player/group01/cookies114.mdl",
description = [[Steal others players stuff/raid buildings.]],
weapons = {"weapon_physgun", "lockpick", "keys", "gmod_camera", "gmod_tool", "pocket", "weapon_fists", "weapon_physcannon"},
command = "thief",
max = 5,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
modelScale = 1.2,
maxpocket = 20,
maps = {"rp_downtown_evilmelon_v1", "gm_construct"},
candemote = false,
mayor = false,
chief = false,
medic = false,
cook = false,
hobo = false,
CanPlayerSuicide = function(ply) return false end,
PlayerCanPickupWeapon = function(ply, weapon) return true end,
PlayerDeath = function(ply, weapon, killer) end,
PlayerLoadout = function(ply) return true end,
PlayerSelectSpawn = function(ply, spawn) end,
PlayerSetModel = function(ply) return "models/grandtheftauto5/trevor.mdl" end,
PlayerSpawn = function(ply) end,
PlayerSpawnProp = function(ply, model) end,
RequiresVote = function(ply, job) for k,v in pairs(player.GetAll()) do if IsValid(v) and v:IsAdmin() then return false end end return true end, -- People need to make a vote when there is no admin around
ShowSpare1 = function(ply) end,
ShowSpare2 = function(ply) end,
canStartVote = function(ply) return ply:Distance(SomeNPC) < 200 end,
canStartVoteReason = "Must be close to some NPC",
buttonColor = Color(255, 255, 255, 255), -- The color of the button in the F4 menu
label = "Thief", -- Optional: the text on the button in the F4 menu
})[/CODE]
This should fix it.
Sorry, you need to Log In to post a reply to this thread.