Server
getRepAmount
getRepAmount
exports.brazzers_sales:getRepAmount(source, rep)
source:
int
1
rep:
string
weed
addRep
addRep
exports.brazzers_sales:addRep(source, rep, amount, chance)
source:
int
1
rep:
string
weed
amount:
int
10
chance:
int
10
removeRep
removeRep
exports.brazzers_sales:removeRep(source, rep, amount, chance)
source:
int
1
rep:
string
weed
amount:
int
10
chance:
int
10
addRepByItem
addRepByItem
exports.brazzers_sales:addRepByItem(source, item, amount, chance)
source:
int
1
item:
string
joint
amount:
int
10
chance:
int
10
removeRepByItem
removeRepByItem
exports.brazzers_sales:removeRepByItem(source, item, amount, chance)
source:
int
1
item:
string
joint
amount:
int
10
chance:
int
10
hasSkill
hasSkill
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
getHighestSkill
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
unlockSkill
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
lockSkill
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
getMyMarketItems
exports.brazzers_sales:getMyMarketItems(source)
source:
int
1
getCart
getCart
exports.brazzers_sales:getCart(source)
source:
int
1
getAmountOfOffers
getAmountOfOffers
exports.brazzers_sales:getAmountOfOffers(source)
source:
int
1
Last updated