local data = exports.lation_chopshop:GetData()
print(data.reputation) -- Peputation points
print(data.points) -- Mastery points
print(data.rep_since) -- Reputation earned since last mastery point
print(data.dismantle_lvl) -- Dismantling level
print(data.parts_lvl) -- Increased parts level
print(data.lockpick_lvl) -- Lockpicking level
print(data.payout_lvl) -- Increase vehicle sales level
print(data.total_chopped) -- Total vehicles chopped
print(data.total_parts) -- Total parts received
print(data.total_money) -- Total money earned
-- If only looking for a specific data type, can also be used like so:
local reputation = exports.lation_chopshop:GetData('reputation')
print(reputation)
IsChopping - Returns true or false if vehicle player is next to is their assigned chop vehicle
exports.lation_chopshop:IsChopping()
PoliceCount - Returns the number of police online
local count = exports.lation_chopshop:PoliceCount()
print('There are ' ..count.. ' police online!')
RequestOrCancelAJob - Request a job as normal or cancel an active one
exports.lation_chopshop:RequestOrCancelAJob()
Server
GetData - Returns data for player ID passed
-- source: Player ID
local data = exports.lation_chopshop:GetData(source)
print(data.reputation) -- Peputation points
print(data.points) -- Mastery points
print(data.rep_since) -- Reputation earned since last mastery point
print(data.dismantle_lvl) -- Dismantling level
print(data.parts_lvl) -- Increased parts level
print(data.lockpick_lvl) -- Lockpicking level
print(data.payout_lvl) -- Increase vehicle sales level
print(data.total_chopped) -- Total vehicles chopped
print(data.total_parts) -- Total parts received
print(data.total_money) -- Total money earned
-- If only looking for a specific data type, can also be used like so:
local reputation = exports.lation_chopshop:GetData(source, 'reputation')
print(reputation)
AddRep - Increments total amount of reputation player has
-- source: Player ID
-- amount: How much reputation to add to player
exports.lation_chopshop:AddRep(source, amount)
AddVehicle - Increments total vehicles chopped count
-- source: Player ID
-- amount: How many to add to total_vehicles count
exports.lation_chopshop:AddVehicle(source, amount)
AddParts - Increments total parts received count
-- source: Player ID
-- amount: How many to add to total_parts count
exports.lation_chopshop:AddParts(source, amount)
AddSale - Increments total money earned count
-- source: Player ID
-- amount: How much to add to total_money count
exports.lation_chopshop:AddSale(source, amount)