Darkrp example

mail@pastecode.io avatar
unknown
lua
6 months ago
485 B
11
Indexable
Never

-- 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
Leave a Comment