So I have the PD doors set to the Cops and Mayor only door group, I am trying to get these to lock on server start. Can anyone help me with this? So far I have something to get all the doors (code below) but how do I get the door group of it?
PS: I dont know which one I will use yet they are pretty much the same
--for k, v in pairs( ents.GetAll() ) do -- local class = v:GetClass() -- if class == "prop_door_rotating" then -- end --end --for _, ent in ipairs(ents.GetAll()) do -- if ent:IsDoor() == true then -- end --end