• Make all doors unlocked.
    1 replies, posted
Hi. I'm running rp_downtown_v2 on my server, and I noticed a few doors on the map is locked by default. I would like to how I can make every door automaticly unlock on start. Thanks.
Something like this. [lua] local doors = {"func_door", "func_door_rotating", "prop_door_rotating", "prop_dynamic"} function UnlockDoors() for k, v in pairs(ents.GetAll()) do if v and v:IsValid() then local class = v:GetClass() if doors[class] then v:Fire("unlock", "", 0) end end end end hook.Add( "InitPostEntity", "UnlockDoors", UnlockDoors ) [/lua]
Sorry, you need to Log In to post a reply to this thread.