Well, I’m naughty and use DarkRPVars, but they do there task.
Make a table in the same sql database called vips
1 column called steamID (primary key, although not that it matters. Make it unique as well)
DB.QueryValue() is the function used in DarkRP. I simply copied it, not sure if that’s something DarkRP unique or not though.
local steamID = sql.SQLStr(ply:SteamID())
DB.QueryValue(“SELECT steamID FROM vips WHERE steamID = " …steamID…”;", function(cb)
if (cb) then
Throw that in a PlayerAuthed hook then add this to a shared file:
if self.DarkRPVars and self.DarkRPVars.vip then
There, you now have a working ply:IsVip(), now you can use this in the same method as ply:IsAdmin().
Ofcourse, that’s the simple part to code. The annoying parts are making only certain jobs open to the VIP rank and allowing those ranks view the job / spawn specific entities etc. It’s not hard, just a bit tedious.
I’m not helping anymore, I already helped more than I normally would. If you want to run a server you should get to know the code inside DarkRP. There is no point running another clone that is just snippets from code found on facepunch. There is already a great server that does that, called ByB ;).