Darkrp example

Anonymous
lua
12/04/2023 4:14 AM
648 B
31
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