This is the Job I made and some how it is causing script errors and is causing all other Jobs in jobs.lua doesn't work. This is the Job I made:
TEAM_HITMAN = DarkRP.createJob("Deadpool", { -- Name
color = Color(0, 0, 0, 0), -- Team color
model = "models/npcs/pizzaroll/xebatmangood.mdl", -- Player model
description = [[Take Hits, kill your target and jerk off, your dead pool man :3]], -- Job description
weapons = {"spiderman's_swep", "m9k_hk45", "weapon_medkit", "m9k_damascus"}, -- Additional weapons
command = "Deadpool", -- Command to become the job
max = 1, -- Maximum amount of said job
salary = 100, -- Salary
admin = 0, -- Requires Admin? 1 for yes, 0 for no.
vote = false, -- Do they need to vote? true for yes, false for no.
hasLicense = true, -- Has a license
customCheck = function(ply) return ply:GetNWString("usergroup") == "donator" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have a restriction
CustomCheckFailMsg = "This job is Donator only!" -- Allows you to tell the user what went wrong when attempting to switch jobs
PlayerLoadout = function(ply) -- this line is added. Remember a comma at the end of above line if it is not there.
ply:SetHealth(200)
ply:SetArmor(50)
ply:SetWalkSpeed(200)
ply:SetRunSpeed(300)
end,
})
Remove the comma on the final end, add a comma PlayerLoadout = function(ply), like so. I don't know anything else about darkrp and i don't want to, but try that. Also wrap the code up in [code] tags. Also it's you're Deadpool not your :3
Instead of using PlayerLoadout to set the players health, armor, and the other two, use PlayerSpawn.
Sorry, you need to Log In to post a reply to this thread.