Garry's Mod Leaks

Full StarwarsRP Server Files

Submitted by defineyourfuture, , Thread ID: 113224

Thread Closed

RE: Full StarwarsRP Server Files

DaveF
Lurker
Level:
0
Reputation:
0
Posts:
7
Likes:
0
Credits:
2
26-05-2022, 09:42 AM
This post was last modified: 26-05-2022, 09:43 AM by DaveF
#16
Code:
/*----------------------------------------------------------
VIP.
---------------------------------------------------------*/
local VIP = {

  //Staff groups
  "admin",
  
  // VIP Groups
  "vip",
  "vip2",
  "vip3"
}


TEAM_RANDOMJOB = DarkRP.createJob("Random Job", {
  color = Color(248,0,213),
  model = {"Random_model"},
  description = [[]],
  weapons = {"test1","test2"},
  command = "jobcommandamazing",
  salary = 5,
  admin = 0,
  max = 1,
  vote = false,
  hasLicense = false,
  candemote = false,
  category = "Category",
  PlayerLoadout = function(ply)
   ply:SetMaxHealth(200)
    ply:SetHealth(200)
    ply:SetWalkSpeed(200)
    ply:SetRunSpeed(300)
    ply:SetArmor(100)
    ply:SetMaxArmor(200)
  end,
  modelScale = 0.6,
  customCheck = function(ply)
    return (table.HasValue(VIP, ply:GetUserGroup()))
  end,
  CustomCheckFailMsg = "This job is for VIP only!",
})

As it was not in the files how you make vip jobs (as I don't think everyone got a whitelisting addon). Also if your modelScale = 0.6, does not work. Try the below

Code:
/*----------------------------------------------------------
VIP.
---------------------------------------------------------*/
local VIP = {

  //Staff groups
  "admin",

  // VIP Groups
  "vip",
  "vip2",
  "vip3"
}


TEAM_RANDOMJOB = DarkRP.createJob("Random Job", {
  color = Color(248,0,213),
  model = {"Random_model"},
  description = [[]],
  weapons = {"test1","test2"},
  command = "jobcommandamazing",
  salary = 5,
  admin = 0,
  max = 1,
  vote = false,
  hasLicense = false,
  candemote = false,
  category = "Category",
  PlayerLoadout = function(ply)
   ply:SetMaxHealth(200)
    ply:SetHealth(200)
    ply:SetWalkSpeed(200)
    ply:SetRunSpeed(300)
    ply:SetArmor(100)
    ply:SetMaxArmor(200)
    timer.Simple(0.1, function() ply:SetModelScale(0.6, 1) end)
  end,
  customCheck = function(ply)
    return (table.HasValue(VIP, ply:GetUserGroup()))
  end,
  CustomCheckFailMsg = "This job is for VIP only!",
})

Users browsing this thread: 17 Guest(s)