Post the errors or warnings.
Try this. if i'am wrong sorry
--- GATE SYSTEM BY DARHAL ---
miniDistance = 3
--RESOURCE SETTINGS
--HERE CHANGE THE RESOURCE NAME TO THE GROUPS SYSTEM THAT YOU USE
local GROUPS_RESOURCE_NAME = "SAEGGroups" -- CHANGE THAT LINE TO YOUR GROUP SYSTEM NAME
function GPG(plr)
if plr and getACC(plr) then
return exports.SAEGGroups:getPlayerGroup ( plr) or exports.SAEGAdministration:isPlayerStaff ( plr)
end
end
-- GATE MANAGERS LIST (ACCOUNT NAME)
managers = {
--[[YOU CAN ADD ANY ACCOUNT BY SIMPLY ADDING THIS LINE :
"account name",
To the list above--]]
"oussama",
"",
}
-- ALLOWED OBJECTS THAT MANAGERS CAN USE TO PLACE GATE
allowedModels = {
"980",
"967",
"16773",
"10829",
"10832",
"2990",
"2933",
"971",
"9042",
"8957",
"3089",
"2955",
"2947",
"2924",
"2911",
"1491",
"1504",
"1505",
"1507",
"1523",
"1557",
"8378",
"10671",
"11313",
"10641",
"7910",
"10149",
"16775",
"2634",
}