AV Scripts
StoreDiscord
  • Documentation
  • Guides
    • Dealerships
      • Installation
      • Admin Panel
        • All Vehicles
        • Dealerships
        • Auctions
      • Dealership Panel
        • Overview
        • Auctions
        • Employees
        • Orders
        • Payments
        • Showroom
        • Warehouse
        • Pre Owned
        • Settings
      • Buy/Sell Vehicles
      • Catalogue
      • Exports
      • FAQ
    • House Robbery
      • Installation
      • Add Shells
      • Dispatch
      • Exports
      • Weather
      • Minigames
      • Notifications
      • New Houses
      • Object Types
      • Sell Items
    • Illegal Runs
      • Installation
      • Customization
      • Ox Inventory
      • QB Inventory
    • Multicharacter
      • Installation
      • Character Slots
      • Clothes
      • Scenes
        • Previews
      • Exports
      • Weather
    • Paleto Heist
      • Buy here
    • Refund System
      • Installation
        • Inventories
    • Tuning Script
      • Installation
      • Events and Controls
      • Exports
      • Price Multiplier
    • Vehicleshop
      • Installation
      • Admin Panel
      • Addon Vehicles
      • Functions
        • Fuel
        • Keys
        • VIP
        • Weather
      • Garages
      • HUD
      • Society
    • Weather Script
      • Installation
      • Breath Condensation
      • Fog
      • Real Time Sync
      • Exports
    • VIP Script
      • Installation
      • Exports
      • Categories
      • Admin
      • Tebex
      • Free Tokens
  • LAPTOP PACK V3
    • Laptop v3
      • Installation
        • Inventory
        • Cosmo
        • Permissions
        • QBCore
        • Custom Framework/Inventory
        • Phone
        • Translate
      • Browser
      • Terminal
      • Documents
      • APPs Config
      • Exports
    • Boosting
      • Create Profile
      • APP
      • Contracts
      • Dispatch
      • Lockpick Export
      • VIN Export
    • Business
      • Installation
        • Inventories
          • Origen Inventory
            • ESX
            • QBCore
          • OX Inventory
          • QB/PS/LJ Inventory
          • Quasar Inventory
            • ESX
            • QBCore
          • Codem Inventory
          • Tgiann Inventory
        • ESX
      • Admin Panel
        • Create Zones
        • Edit Zones
      • Config
        • Animations
        • Blips
        • Buttons
        • Crafting
        • Effects
        • Events
          • Items
          • Zones
        • Logs
          • Custom Logs
        • Permissions
      • Exports
      • Banking Scripts
      • Multijobs
    • Cameras
      • Installation
        • Vehicle Cameras
      • Place Camera
      • Job Cameras
    • Drugs
      • Installation
      • Admin Panel
      • APP
      • Tables
      • Labs
        • PC
        • Raids
      • Alert Cops
      • Shells
      • Exports
    • Gangs
      • Installation
      • Admin Panel
        • Gangs
        • Whitelist
      • Properties
      • Register Gang
      • APP
        • Members
        • Settings
        • Missions
        • Blackmarket
        • Properties
      • Graffitis
      • Missions
      • Gang NPC
      • Shells
      • Exports
      • Labs
    • Groups
      • Events
      • Exports
    • Music
      • Installation
      • Music Labels
      • APP
        • Search Music
        • Playlists
        • Headphones
      • CDs
    • Racing
      • Installation
        • Permissions
        • Discord Logs
        • Addon Vehicles
      • Admin Panel
      • Categories
      • Events
      • Exports
      • Personal Settings
      • The Underground
    • Custom APPs
    • Discord Support
Powered by GitBook
On this page
  • Get Society Funds
  • Add Society Funds
  • Remove Society Funds
  1. LAPTOP PACK V3
  2. Business

Banking Scripts

This is a little guide on how to connect AV Business with a banking script, for this guide we will be using Renewed Banking but works exactly the same with any other banking script that supports exports for add/remove society money.

Society exports can be found in av_laptop/server/editable/exports.lua

Get Society Funds

  • This export returns the current funds from society, replace the function with your banking export like this:

-- Returns society money or false
function getSociety(name)
    if not name then print('[ERROR] Function getSociety received NULL as argument') return end
    return exports['Renewed-Banking']:getAccountMoney(name) -- EXAMPLE with RB
end

Add Society Funds

  • This export adds funds for society and will add logs for Business APP > Bank tab

function addSociety(src, job, amount, name, description)
    if avBusiness then -- Optional but highly recommended to keep it
        --This export adds the log for Bank tab + add income for monthly goal
        exports['av_business']:addMoney(name, job, amount, description)
        if GetInvokingResource() ~= "av_business" then
            -- This export adds the transaction for Today's Overview chart
            exports['av_business']:addIncome(job,amount,true)
        end
    end
    -- You can add your banking exports here:
    exports['Renewed-Banking']:addAccountMoney(job,amount) -- EXAMPLE with RB
end

Remove Society Funds

  • This export removes society funds.

function removeSociety(src, job, amount, name, description)
    if avBusiness then
        -- Add logs for Bank tab in Business APP
        exports['av_business']:removeMoney(name, job, amount, description)
    end
    exports['Renewed-Banking']:removeAccountMoney(job,amount) -- EXAMPLE with RB
end

Last updated 8 months ago