isBusinessOwner
exports["RiP-Clothing"]:isBusinessOwner(id)
This function returns if the player is the business owner and or has bought it
Arguments
Name | Type | Optional | Explanation |
---|---|---|---|
id | Integer | No | business id |
Returned Table
Name | Type | Explenation |
---|---|---|
isBought | Boolean | is the business bought or not |
isOwner | Boolean | player 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