Discord
Steam
/
Garry's Mod
/
Developers
/
Help with cust..
Login/Join
Event Log
Help with customcheck
4 replies, posted
Search
In This Thread
local vipRanks = { ["owner"] = true, ["superadmin"] = true, ["admin"] = true, ["headadmin"] = true, ["moderator"] = true, ["developer"] = true, ["coowner"] = true } FindMetaTable("Player").Isvip = function(self) return vipRanks[self:GetUserGroup()] end end how would i put that code into customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:IsAdmin() end, please? Thanks
[QUOTE=moderatorondu;51676495]local vipRanks = { ["owner"] = true, ["superadmin"] = true, ["admin"] = true, ["headadmin"] = true, ["moderator"] = true, ["developer"] = true, ["coowner"] = true } FindMetaTable("Player").Isvip = function(self) return vipRanks[self:GetUserGroup()] end end how would i put that code into customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:IsAdmin() end, please? Thanks[/QUOTE] [code]customCheck = function(ply) return ply:Isvip() end,[/code] learn basic lua pls
Also, run :lower () on the GetUserGroup return
can u guys just me the custom check itself please?
He already did
Sorry, you need to
Log In
to post a reply to this thread.