π§ Installation
Prerequisites
Before installing the N4S Billing Script, ensure you have the following dependencies:
Required Dependencies
π¦ Installation Steps
1. Dependencies Installation
2. Database Setup
SQL Tables
Execute the following SQL queries in your database:
CREATE TABLE IF NOT EXISTS `billing_invoices` (
`id` char(17) NOT NULL,
`billFrom` text NOT NULL,
`billTo` text NOT NULL,
`paid` tinyint(4) NOT NULL DEFAULT 0,
`data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
CREATE TABLE IF NOT EXISTS `billing_presets` (
`id` char(255) DEFAULT NULL,
`data` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
CREATE TABLE IF NOT EXISTS `billing_society` (
`id` varchar(30) NOT NULL,
`balance` bigint(20) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
π¨ Important Notes
Ensure your database user has permissions to create and modify tables
Backup your database before installation
Run these queries in your server's database
3. Script Installation
Download the N4S Billing Script
Place in your
resources
folderAdd to your
server.cfg
orresources.cfg
Add bl_bridge convars to your server.cfg with your server optionsΒ΅
# Frameworks 'ox' | 'qb' | 'esx' | 'qbx' setr bl:framework 'qb' # Inventories 'ox' | 'qb' | 'esx' | 'ps' | 'qs' | 'origen' | 'none' setr bl:inventory 'ox' # Context 'ox' | 'qb' setr bl:context 'ox' # Target 'ox' | 'qb' setr bl:target 'ox' # Progress 'ox' | 'qb' setr bl:progressbar 'ox' # Radial 'ox' | 'qb' setr bl:radial 'ox' # Notification 'ox' | 'qb' | 'esx' setr bl:notify 'ox' # TextUI 'ox' | 'qb' | 'esx' setr bl:textui 'o
Need Help?
Check our Discord support channel
Review the comprehensive documentation
β
Installation Checklist
Last updated