Server Exports
REMEMBER ABOUT CLIENT SIDE AND SERVER SIDE IN CHOOSING EXPORT!
Get Account
Use following export to get some company account data.
jobName:
string
Existing job name of some dealership
Return:
account:
table
Account Data
You can use some function from list below
newContract
contractData:
table
seller:
string
buyer:
string
model:
string
price:
string
engine?:
number
plate:
string
transmission?:
number
suspension?:
number
brakes?:
number
turbo?:
boolean
getContracts
Return:
contracts:
table
getBalance
Return:
balance:
number
saveMoney
Save company money manually [It's already saving after using addMoney or removeMoney]
addMoney
Add some amount of money to company account
Return:
success:
boolean
removeMoney
Remove some amount of money from company account
Return:
success:
boolean
getStats
Use this if you want to fetch company total income and sold vehicles
Return:
stats:
table
soldVehicles:
number
income:
number
updateStat
Use this if you want to update some statistic manually
statName and value also can be table!
Return:
success:
boolean
Last updated