Server

getRepAmount

Returns the amount of rep you have in the specific reputation

exports.brazzers_sales:getRepAmount(source, rep)
  • source: int

    • 1

  • rep: string

    • weed


addRep

Add reputation to a player

exports.brazzers_sales:addRep(source, rep, amount, chance)
  • source: int

    • 1

  • rep: string

    • weed

  • amount: int

    • 10

  • chance: int

    • 10


removeRep

Remove reputation to a player

exports.brazzers_sales:removeRep(source, rep, amount, chance)
  • source: int

    • 1

  • rep: string

    • weed

  • amount: int

    • 10

  • chance: int

    • 10

addRepByItem

Add reputation to a player that contains the item in the reputation. Ex. (weed reputation accepts joints)

exports.brazzers_sales:addRepByItem(source, item, amount, chance)
  • source: int

    • 1

  • item: string

    • joint

  • amount: int

    • 10

  • chance: int

    • 10


removeRepByItem

Remove reputation from a player that contains the item in the reputation. Ex. (weed reputation accepts joints)

exports.brazzers_sales:removeRepByItem(source, item, amount, chance)
  • source: int

    • 1

  • item: string

    • joint

  • amount: int

    • 10

  • chance: int

    • 10


hasSkill

Checks if a player has a specific skill

local skill = 'Big Booty Bandits'
local active = exports.brazzers_sales:hasSkill(source, skill)

if active then
    -- Do stuff when has skill
else
    -- Do stuff when you don't have the skill-
end
  • source: int

    • 1

  • skill: string

    • Big Booty Bandit


getHighestSkill

Gets the highest skill from a list of data

local data = {'Big Booty Bandit 1', 'Big Booty Bandit 2', 'Big Booty Bandit 3'}
local highest = exports.brazzers_sales:getHighestSkill(source, data)

-- If I have BBB1 and BBB3, it'll return BBB3 because its the highest I have.
-- Highest is determined by the order the data is in that I give the export.

if highest == 'Big Booty Bandit 3' then
    -- Do stuff cause im a BBB3
end
  • source: int

    • 1

  • data: table

    • {'Big Booty Bandit 1', 'Big Booty Bandit 2', 'Big Booty Bandit 3'}


unlockSkill

Unlock a skill for a player by skill name

local name = 'Big Booty Bandit 1'
local unlock = exports.brazzers_sales:unlockSkill(source, name)

if unlock then
    -- Do stuff when the skill unlocks
else
    -- Do stuff if it doesn't unlock
end
  • source: int

    • 1

  • name: string

    • Big Booty Bandit 1


lockSkill

Lock a skill for a player by skill name

local name = 'Big Booty Bandit 1'
local lock = exports.brazzers_sales:unlockSkill(lockSkill, name)

if lock then
    -- Do stuff when the skill locks
else
    -- Do stuff if it doesn't lock
end
  • source: int

    • 1

  • name: string

    • Big Booty Bandit 1


getMyMarketItems

Returns all my items in a table that are on the market

exports.brazzers_sales:getMyMarketItems(source)
  • source: int

    • 1


getCart

Returns all my items in my cart

exports.brazzers_sales:getCart(source)
  • source: int

    • 1


getAmountOfOffers

Returns the amount of offers I have on the market

exports.brazzers_sales:getAmountOfOffers(source)
  • source: int

    • 1


Last updated