• How to make DarkRP restricted job available for more than one VIP classes
    3 replies, posted
Hey so I was just wondering, does anyone know how to make a job that was only available for one VIP "class" available for more than one so for example how can I make this job down below availabe to VIP and admins [CODE]TEAM_DONATORJOB = DarkRP.createJob("Combine Sniper", { -- Name color = Color(238, 99, 99, 255), -- Team color model = "models/player/combine_soldier.mdl", -- Player model description = [[Provide your fellow Combines with sniper support. (This class gets weapons, please do not RDM or you will be kicked, or banned).]], -- Job description weapons = {"m9k_m24"}, -- Additional weapons command = "Sniper", -- Command to become the job max = 2, -- Maximum amount of said job salary = 150, -- 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") == "VIP" end -- The extra check function. Enter nil or nothing to not have an extra check })[/CODE]
[Code] TEAM_DONATORJOB = DarkRP.createJob("Combine Sniper", { -- Name color = Color(238, 99, 99, 255), -- Team color model = "models/player/combine_soldier.mdl", -- Player model description = [[Provide your fellow Combines with sniper support. (This class gets weapons, please do not RDM or you will be kicked, or banned).]], -- Job description weapons = {"m9k_m24"}, -- Additional weapons command = "Sniper", -- Command to become the job max = 2, -- Maximum amount of said job salary = 150, -- 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") == "VIP" or ply:GetNWString("usergroup") == "vip2" end -- The extra check function. Enter nil or nothing to not have an extra check }) [/Code]
Ok thanks dude also I was wondering for the job here [CODE]TEAM_JUGG = DarkRP.createJob("Juggernaut", { -- Name color = Color(238, 99, 99, 255), -- Team color model = "models/player/combine_soldier.mdl", -- Player model description = [[----VIP ONLY----The juggernaut is often used to assist fellow combines and soak up damage.]], -- Job description weapons = {"riotshield"}, -- Additional weapons command = "Juggernaut", -- Command to become the job max = 2, -- 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:GetUserGroup() == ("VIP") or ply:GetUserGroup() == ("operator") or ply:GetUserGroup() == ("admin") or ply:GetUserGroup() == ("superadmin") })[/CODE] How can I make the job have 100% armour and also be a VIP, moderator, admin, and superadmin job thanks!
I would recommend looking at [URL="http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields"]this page[/URL] for all the available job arguments.
Sorry, you need to Log In to post a reply to this thread.