Overview
All the server exports have these 2 variables in common:
serverId: integertag: string
has
Returns a boolean indicating if the specified player has the stated tag
exports["br_tags"]:has(playerId, tag)Usage example:
if not exports["br_tags"]:has(id, "attorney") then
return print("Cannot access documents")
endadd
Adds a new tag to the specified player
exports["br_tags"]:add(playerId, tag)Usage example:
AddEventHandler("buyProperty", function(cash)
if cash >= Config.propertyPrice then
exports["br_tags"]:add(source, "420_house_owner")
end
end)remove
Removes the stated tag from the specified player
exports["br_tags"]:remove(playerId, tag)Usage example:
AddEventHandler("committedCrime", function()
exports["br_tags"]:add(source, "cop")
end)