okokDocs
  • About Us
  • Scripts
    • okokVehicleControl
      • Config file
    • okokMechanicJob
      • Config file
    • okokPoliceJob
      • Config file
      • qb-inventory support
    • okokBossMenu
      • Config file
    • okokMulticharacter
      • Config file
    • okokPhone
    • okokSpawnSelector
      • Config file
      • qb-multicharacter support
    • okokLoadingScreen
      • Config file
    • okokVehicleSales
      • Config file
    • okokShop
      • Config file
    • okokGasStation
      • Config file
    • okokTuning
      • Config file
    • okokGarage
      • Config file
      • RGB vehicle colors
      • Inventories metadata
      • Housing integrations
      • qb-phone support
    • okokVehicleShop
      • Config file
      • Common errors
    • okokBanking
      • Config file
      • Paycheck transactions
      • Registering transactions
    • okokMarketplace
      • Config file
      • Common errors
    • okokChat
      • Config file
      • Export
    • okokBilling
      • Config file
      • Snippets
    • okokCrafting
      • Config file
    • okokContract
      • Config file
    • okokTalkToNPC
      • Config file
    • okokReports
      • Config file
    • okokNotify
      • Config file
      • Snippets
    • okokTextUI
      • Config file
      • Snippets
    • okokRequests
    • okokDeleteVehicles
      • Config file
  • Others
    • Discord Webhook
Powered by GitBook
On this page
  • Create custom invoices
  • Event to open the My Invoices menu (client side)
  • Event to open the Create Invoice menu (client side)
  1. Scripts
  2. okokBilling

Snippets

Create custom invoices

TriggerServerEvent("okokBilling:CreateCustomInvoice", target, price, reason, invoiceSource, society, societyName)

Variables:

target: xTarget.source

price: 500

reason: Speeding

invoiceSource: Highway Radar

society: police (you can remove this in case you want no society to receive money)

societyName: LSPD (you can remove this in case you want no society to receive money)

Event to open the My Invoices menu (client side)

TriggerEvent("okokBilling:ToggleMyInvoices")

Event to open the Create Invoice menu (client side)

TriggerEvent("okokBilling:ToggleCreateInvoice")
PreviousConfig fileNextokokCrafting

Last updated 1 year ago