Jump to navigation Jump to search
Revision as of 20:00, 3 July 2013 by Bo98 (https://github.com/FPtje/DarkRP/commit/dfb57408a8ce6cfc0f9c32aaad45e43d4b70cc24)
|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:removeDoorOwner(Player ply)|
|Makes a player no longer own the door.|
|Part of Library:||Entity|
|Description||Makes a player no longer own every door that he has group ownership with.|
--ply = player that's gonna loose all his/her doors for _, ent in ipairs(ents.GetAll()) do if ent:IsDoor() == true then ent:removeDoorOwner(ply) end end
Important things to know
- RemoveAllowed makes the player no longer allowed to own the door, this makes the player actually unown the door.