I have a SantosRP Server but I need a ulx whitelist system for the jobs. I have tryed with darkrp job whitelist addons but they don't work with the santosrp gamemode. Could someone set up a customcheck for the code below and make it work for certain ulx ranks
[CODE]--[[
Name: police.lua
]]--
--Job protocols start at 50 to save space for other things in the gamemode
GM.Net:AddProtocol( "police", 51 )
GM.ChatRadio:RegisterChannel( 1, "Police", false )
GM.ChatRadio:RegisterChannel( 2, "Police Encrypted", true )
local Job = {}
Job.ID = 2
Job.Enum = "JOB_POLICE"
Job.Receives911Messages = true
Job.TeamColor = Color( 255, 0, 0, 255 )
Job.Name = "Police"
Job.PlayerModel = {
Male_Fallback = "models/player/santosrp/Male_02_santosrp.mdl",
Female_Fallback = "models/portal/player/female_police02.mdl",
Male = {
["male_01"] = "models/player/santosrp/male_01_santosrp.mdl",
["male_02"] = "models/player/santosrp/Male_02_santosrp.mdl",
["male_03"] = "models/player/santosrp/Male_03_santosrp.mdl",
["male_04"] = "models/player/santosrp/Male_04_santosrp.mdl",
["male_05"] = "models/player/santosrp/Male_05_santosrp.mdl",
["male_06"] = "models/player/santosrp/Male_06_santosrp.mdl",
["male_07"] = "models/player/santosrp/Male_07_santosrp.mdl",
["male_08"] = "models/player/santosrp/Male_08_santosrp.mdl",
["male_09"] = "models/player/santosrp/Male_09_santosrp.mdl",
},
Female = {
["female_01"] = "models/portal/player/female_police02.mdl",
},
}
Job.CanWearCivClothing = true
Job.Pay = {
{ PlayTime = 0, Pay = 190 },
{ PlayTime = 4 *(60 *60), Pay = 230 },
{ PlayTime = 12 *(60 *60), Pay = 280 },
{ PlayTime = 24 *(60 *60), Pay = 330 },
}
Job.PlayerCap = GM.Config.Job_Police_PlayerCap or { Min = 2, MinStart = 8, Max = 6, MaxEnd = 60 }
Job.HasChatRadio = true
Job.DefaultChatRadioChannel = 1
Job.ChannelKeys = {
-- [2] = true, --Police Encrypted
[4] = true, --Fire Encrypted
[6] = true, --EMS Encrypted
}[/CODE]
There is more but I don't think its needed I will post the rest of the Police job if needed. Ty for reading please help if u can :)
Sorry, you need to Log In to post a reply to this thread.