DarkRP.Entity.AddAllowed

From Official DarkRP Wiki
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
Function name Entity:AddAllowed(Player ply)
Description:
Allows a player to own the door.
Returns: nil
Part of Library: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Entity.AddAllowed]Entity:AddAllowed[/url][/b]

Examples

DescriptionAdds a function to make a certain player allowed to own the door.
Used onNewerServer.png
Code
function AdminAddOwnership( trace, playeradd )
	trace.Entity:AddAllowed( playeradd )
end
OutputN/A


Additional Notes

  • Doesn't make the player own the door, only allows them.