SantosRP Jobs Whitelist

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


--[[
	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
}

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 :slight_smile:

Use

Player:GetUserGroup to check their ULX group, and don’t allow them to switch jobs(if that’s what it’s called?) if it’s not equal to something. I’d imagine you’d check it before wherever a player’s Team is set.

There’s not a lot we can do here. SantosRP is not a public gamemode, so you’re gonna have to hire/ask someone to help you privately, sorry.