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
  • Generate Unique IBAN
  • Generate Unique Card Number
  • Update Credit Score
  • Create History
  • Get Player Accounts
  1. Assets & Guides
  2. Banking

Server Exports

Here you will find the list of usable exports for Banking, 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!


Generate Unique IBAN

Use following export to generate unique IBAN number

local newIBAN = exports['p_banking']:generateUniqueIBAN()
print(newIBAN)
  • Return:

    • newIBAN: string


Generate Unique Card Number

Use following export to generate unique Card Number

local cardNumber = exports['p_banking']:generateUniqueCardNumber()
print(cardNumber)
  • Return:

    • cardNumber: string


Update Credit Score

Use following export to update credit score for player

local identifier = 'char1:123456' -- replace with existing player identifier
local score = 100 -- amount to add/remove, you can use negative value

exports['p_banking']:updateCreditScore(identifier, score)
  • identifier: string

    • Existing player identifier

  • score: number

    • Score to add or remove


Create History

Use following export to create transaction history for account

local data = {
   iban = '1234567890', -- replace with existing account iban
   type = 'income', -- income / outcome
   amount = 100,
   title = 'Withdraw',
   from = 'SYSTEM',
   to = 'John Doe'
}
exports['p_banking']:createHistory(data)
  • iban: string

    • Iban account to add transaction

  • type: string

    • Type of transaction, can be income / outcome

  • amount: number

    • Amount to display in history

  • title: string

    • Title of transaction

  • from: string

    • Name of transaction sender

  • to: string

    • Name of transaction receiver

Return:

  • transactions: table

    • All account transactions


Get Player Accounts

Use following export to get player accounts

local playerId = 1 -- replace with existing player id
local accounts = exports['p_banking']:getPlayerAccounts(playerId)
print(json.encode(accounts, {indent=true}))

Return:

  • accounts: table

    • id: number

    • name: string

    • owner: string

    • iban: string

    • balance: number

    • role: owner / user

    • type: personal / society / shared

    • credit_score: number

    • logs: table

    • transactions: table

    • invoices: table

    • users: table

    • cards: table


PreviousClient ExportsNextDOJ Job

Last updated 5 days ago

🏛️