Skip to main content

isBusinessOwner

exports["RiP-Clothing"]:isBusinessOwner(id) 

This function returns if the player is the business owner and or has bought it

Arguments

NameTypeOptionalExplanation
idIntegerNobusiness id

Returned Table

NameTypeExplenation
isBoughtBooleanis the business bought or not
isOwnerBooleanplayer is owner or not

Example

local isBought, isOwner = exports["RiP-Clothing"]:isBusinessOwner(id)
if isBought then
print("Business has been bought already!")
end
if isOwner then
print("You are the business owner")
end