For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Legacy Docs (V2)

YouTube Video

Installation Guide

In case you had the previous okokBilling version (both ESX & QBCore) execute the code below in your database, otherwise ignore it.

DROP TABLE okokbilling;

Execute the following SQL code in your database:

CREATE TABLE `okokbilling` (
    `id` int NOT NULL AUTO_INCREMENT,
    `ref_id` varchar(10) NOT NULL,
    `receiver_identifier` varchar(255) NOT NULL,
    `receiver_name` varchar(255) NOT NULL,
    `author_identifier` varchar(255) NOT NULL,
    `author_name` varchar(255) NOT NULL,
    `society` varchar(255) NOT NULL,
    `society_name` varchar(255) NOT NULL,
    `item` varchar(255) NOT NULL,
    `invoice_value` int NOT NULL,
    `fees_amount` int NOT NULL,
    `status` varchar(50) NOT NULL,
    `notes` LONGTEXT DEFAULT ' ',
    `sent_date` varchar(255) NOT NULL,
    `limit_pay_date` varchar(255) NOT NULL,
    `paid_date` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
);

Server artifacts

Make sure your server artifacts version is above the 5181.

Snippets:

Create custom invoices

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)

Event to open the Create Invoice menu (client side)

Last updated