Advertisement
TheCodingBeast

DarkRP 2.5 Jobs

Feb 11th, 2014
11,323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. TEAM_CUSTOMJOB = DarkRP.createJob("Custom Job", {
  2.     color = Color(255, 0, 0, 255),
  3.     model = "models/player/gman_high.mdl",
  4.     description = [[Custom Job.]],
  5.     weapons = {"weapon_ak472"},
  6.     command = "customjob",
  7.     max = 2,
  8.     salary = 20,
  9.     admin = 0,
  10.     vote = false,
  11.     -- Insert Custom Check Here
  12. })
  13.  
  14.  
  15.  
  16. -- Donator Code / Only players there is in the Donator group can see the job.
  17.     customCheck = function(ply) return ply:GetNWString("usergroup") == "Donator" end,
  18.     CustomCheckFailMsg = "This job is donator only."
  19.  
  20. -- Donator Code / All players can see the job.
  21.     customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "Donator" end,
  22.     CustomCheckFailMsg = "This job is donator only."
  23.  
  24.  
  25. -- SteamID Code / Only players with that SteamID can see the job.
  26.     customCheck = function(ply) return ply:SteamID() == "STEAM_***" end,
  27.     CustomCheckFailMsg = "This job is donator only."
  28.  
  29. -- SteamID Code / All players can see the job.
  30.     customCheck = function(ply) return CLIENT or ply:SteamID() == "STEAM_***" end,
  31.     CustomCheckFailMsg = "This job is donator only."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement