DarkRP.Entity.IsMasterOwner

From DarkRP
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:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Entity.IsMasterOwner]Entity:IsMasterOwner[/url][/b]

Examples[edit]

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 on
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[edit]

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