Darkrp example

 avatar
unknown
lua
2 years ago
485 B
14
Indexable

-- put on line 173
local restricted_models = {
    ["path/to/thing.mdl"] = {
        ["vip_super_dooper_rank"] = true
    }
}

---------


-- put this on line 189
local usergroups = restricted_models[model]
if usergroups and not ply:IsSuperAdmin() then
    if not usergroups[ply:GetUserGroup()] then
        
        -- id suggest a proper popup or somehting but im on phone cba
        ply:PrintMessage(HUD_PRINTTALK, "thats a restricted model!")
        
        return
    end
end
Editor is loading...
Leave a Comment