Jump to navigation Jump to search
|This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.|
Check here for a up-to-date list of functions.
|Function name||Entity:addDoorOwner(Player ply)|
|Makes another player own the door.|
|Part of Library:||Entity|
|Description||Makes a player own every door.|
--ply = player that's gonna own all these doors for _, ent in ipairs(ents.GetAll()) do if ent:IsDoor() == true then ent:addDoorOwner(ply) end end
Important things to know
- AddAllowed makes the player allowed to own the door, this makes the player own it too.