dobrograd-13-06-2022/garrysmod/addons/feature-estates/lua/estates/sh_groups.lua
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

15 lines
407 B
Lua

dbgDoorGroups = dbgDoorGroups or {}
dbgDoorGroups.groups = dbgDoorGroups.groups or {}
function dbgDoorGroups.registerGroup(id, name)
if not isstring(id) then return end
name = tostring(name)
id = string.lower(id)
dbgDoorGroups.groups[id] = name
end
-- DEFAULT
hook.Add('Think', 'dbg-groups', function()
hook.Remove('Think', 'dbg-groups')
dbgDoorGroups.registerGroup('police', 'Полиция')
end)