DarkRP.Entity.IsMasterOwner

From Official DarkRP Wiki
Jump to: navigation, 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:IsMasterOwner(Player player)
Description:
Returns true or false depending on if the supplied player is the first owner of the entity.
Returns: boolean
Part of Library: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Entity.IsMasterOwner]Entity:IsMasterOwner[/url][/b]

Examples

DescriptionAdds a function that returns true or false depending on if the supplied player was the first owner of the entity provided (a door works best).
Used onNewerServer.png
Code
function MasterOwner(ply, ent)
	return ent:IsMasterOwner( ply )
end
OutputReturns true or false depending on if the supplied player was the first owner of the entity provided.


Additional Notes

  • This is the same as checking if:
ply == self:GetDoorOwner()