G9 Docs
DiscordYoutubeTebex
  • Welcome
  • INFO
    • How can i download my script
    • How can i transfer my script
    • What is escrow system?
  • Scripts
    • Core
    • Loading Screen
      • Installation
      • Guide to Changes
      • Config
    • FPS Menu
      • Installation
      • Language
      • Config
    • Shop
      • Installation
      • Language
      • Config
      • Editable Files
    • Bank
      • Installation
      • Language
      • Config
      • Editable Files
      • Exports
Powered by GitBook
On this page
  1. Scripts
  2. Bank

Exports

If a player defaults on a loan or exceeds a certain invoice limit, you can use this export in a script of your choice to prevent them from making a transaction.,

exports["G9-banking"]:getBlock()

Example (for qb-garages)

RegisterNUICallback('takeOutVehicle', function(data, cb)
    local response = exports["G9-banking"]:getBlock()
    if response then
        TriggerEvent('qb-garages:client:takeOutGarage', data)
        cb('ok')
    else
        QBCore.Functions.Notify('You have an unpaid bill or loan!')
    end
end)

Last updated 1 month ago

Page cover image