pScripts
  • INFORMATION
    • FiveM Asset Escrow System
    • Assets Updates
    • Discord Roles
  • Assets & Guides
    • 🏛️Banking
      • 👋Installation Guide
      • ⚙️Editable Files
      • Client Exports
      • Server Exports
    • 👨‍⚖️DOJ Job
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻DOJ MDT
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🌿Weed Plants
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🚗Car Sale Job
      • 👋Installation Guide
      • ⚙️Config File
      • Client Exports
      • Server Exports
    • 📙Job Core
      • ⚙️Config File
      • Exports
    • 👮Police Job
      • 👋Installation Guide
      • ⚠️Common Issues
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
        • Bodycam
        • Evidence System
        • Duty GPS
        • Interactions
        • Jail System
        • Police Objects
        • Speed Camera
        • Manage Traffic
        • Misc
      • Server Exports
        • Evidence System
        • Interactions
        • Jail System
        • Misc
    • 💻Police MDT
      • ⁉️Setup Server
      • ⚙️Config File
      • Client Exports
      • Server Exports
      • Dispatch System
    • 🚑Ambulance Job
      • 👋Installation Guide
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻Ambulance MDT
      • 👋Installation Guide
      • ⚙️Config File
      • Exports and Events
      • Dispatch System
    • 🛠️Mechanic Job
      • ⚙️Config Files
      • Mileage System
      • Nitro System
      • Lifters System
      • Misc
    • 💻Mechanic MDT
      • ⚙️Config File
      • Exports
      • Dispatch System
      • Licenses System
    • 💵Fleeca Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • ⌚Jewelry Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • 💇Appearance
      • ⚙️Config Files
      • Client Exports
    • 👀Hints
      • Exports
    • 👋Helper
      • Exports
    • 🔧Tuning Menu
      • Exports and Events
      • ⚙️Config Files
    • 🆔Documents
      • ⚙️Config File
      • Exports and Events
    • 📱Phone
      • ⤵️INSTALLATION
      • ⚙️CONFIG FILES
      • 📃FEATURES
      • 📱APPS
      • 📇SIM CARDS
      • 📳NOTIFICATIONS
      • 📨MESSAGES
      • 🚘GARAGES
      • 🪙CRYPTO
      • 🔪DARK CONNECT
      • ⌨️FUNCTIONS
      • 🌎LANGUAGE
      • ⚠️COMMON ISSUES
    • 🪙Casino Games
      • 🎰Slot Machine
      • 🏐Roulette
      • ♣️Poker
    • 💻GCT
      • 📨EXPORTS
    • 💻Civil MDT
      • ⤵️INSTALLATION
      • 📱APPS
      • 🏎️BOOSTING
      • 🏅ACHIEVEMENTS
      • ⚠️COMMON ISSUES
Powered by GitBook
On this page
  • Get Account
  • Account Data
  • newContract
  • getContracts
  • getBalance
  • saveMoney
  • addMoney
  • removeMoney
  • getStats
  • updateStat
  1. Assets & Guides
  2. Car Sale Job

Server Exports

Here you will find the list of usable exports for Car Sale Job, you can use them if you have basic or advanced programming knowledge, we do not recommend using these if you do not have such knowledge.

REMEMBER ABOUT CLIENT SIDE AND SERVER SIDE IN CHOOSING EXPORT!


Get Account

Use following export to get some company account data.

exports['p_carsale']:getAccount(jobName)
  • jobName: string

    • Existing job name of some dealership

Return:

  • account: table


Account Data

You can use some function from list below

newContract

local account = exports['p_carsale']:getAccount('dealership')
account.newContract(contractData)
  • contractData: table

    • seller: string

    • buyer: string

    • model: string

    • price: string

    • engine?: number

    • plate: string

    • transmission?: number

    • suspension?: number

    • brakes?: number

    • turbo?: boolean


getContracts

local account = exports['p_carsale']:getAccount('dealership')
account.getContracts()

Return:

  • contracts: table


getBalance

local account = exports['p_carsale']:getAccount('dealership')
account.getBalance()

Return:

  • balance: number


saveMoney

Save company money manually [It's already saving after using addMoney or removeMoney]

local account = exports['p_carsale']:getAccount('dealership')
account.saveMoney()

addMoney

Add some amount of money to company account

local account = exports['p_carsale']:getAccount('dealership')
local amount = 100
account.addMoney(amount)

Return:

  • success: boolean


removeMoney

Remove some amount of money from company account

local account = exports['p_carsale']:getAccount('dealership')
local amount = 100
account.removeMoney(amount)

Return:

  • success: boolean


getStats

Use this if you want to fetch company total income and sold vehicles

local account = exports['p_carsale']:getAccount('dealership')
local stats = account.getStats()

Return:

  • stats: table

    • soldVehicles: number

    • income: number


updateStat

Use this if you want to update some statistic manually

local account = exports['p_carsale']:getAccount('dealership')
local statName = 'soldVehicles'
local value = 1
local stats = account.updateStat(statName, value)

statName and value also can be table!

local account = exports['p_carsale']:getAccount('dealership')
local statName = {'soldVehicles', 'income'}
local value = {1, 100}
local stats = account.updateStat(statName, value)

Return:

  • success: boolean


PreviousClient ExportsNextJob Core

Last updated 4 months ago

🚗