I host several DarkRP servers, I got this code so normal users can see donator jobs, but not become them.
This is the code:
if t == TEAM_SWAT or t == TEAM_SWATSNIPER or t == TEAM_SWATMEDIC or t == TEAM_HITMAN or t == TEAM_SA or t == TEAM_PROTHIEF or t == TEAM_BMD and not self:IsUserGroup("donator") or self:IsUserGroup("donatoradmin") or self:IsUserGroup("donatortrustedadmin") or self:IsUserGroup("superadmin") or self:IsUserGroup("rootadmin") or self:IsUserGroup("owner") then GAMEMODE:Notify(self, 1, 4, string.format("This is a donator job! Buy donator to unlock!")) return end
Its located in the main.lua, in the
function meta:ChangeTeam(t, force)
If you’re ingame, and you are a user, you can see jobs, and you can’t become the donator jobs, so that’s good, that is working,
But when you’re one of the assignes ULX groups, for instance donator, then you still can’t become them.
Anyone knows how to fix this?