My job.lua and categories.lua coding is all fine but it wont open the job menu and doesnt tell me theres anyone problems and I also spawned as a weird skin. Can someone please help me
https://files.facepunch.com/forum/upload/132834/93f7a812-1403-4f99-a680-f5b8c2c3cc6b/image.png
job.lua code:
TEAM_CADET = DarkRP.createJob("Cadet", {
color = Color(0, 127, 31, 255),
model = "",
description = [[Your now a Cadet]],
weapons = {"weapon_empty_hands"},
command = "Cadet",
max = 1000,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
category = "Cadet",
PlayerSpawn = function(ply) ply:SetHealth(100) ply:SetArmor(0) end,
customCheck = function(ply) return ply:GetUserGroup() == "Cadet" or ply:IsAdmin() end
})
Categories.lua code:
DarkRP.createCategory{
name = "Cadet",
categorises = "jobs",
startExpanded = true,
color = Color(0, 127, 31, 255),
canSee = function(ply) return table.HasValue({}, ply:Team()) end,
sortOrder = 10
}
You didn't specify a model. The string is blank.
Also, use code tags ( the {} )
Also,
canSee = function(ply) return table.HasValue({}, ply:Team()) end
Nobody will be able to see the category. You're checking if the player's team exists in an empty table.
But why won't the f4 menu show up?
I'm sorry I'm going to say this but if you struggle with basic jobs and DarkRP you really shouldn't own a server. The F4 menu doesn't open because you screwed up your jobs, simple as that. Use some generator otherwise you'll get errors all the time (since you can't spot your mistakes)
ive fixed it i forgot to check if the F4 menu was false
Sorry, you need to Log In to post a reply to this thread.