NeedForScript
  • πŸš€Getting Started
    • 🍿Welcome to NeedForScript
    • ❓Quick Setup Guide
  • πŸ”₯Our Scripts
    • πŸ’²Banking Script
      • 🧠Installation
      • βš™οΈConfiguration
    • πŸ“‘Billing Script
      • 🧠Installation
      • βš™οΈConfiguration
    • πŸš—Garage Script
      • 🧠Installation
      • βš™οΈConfiguration
    • πŸ§‘β€πŸ”§Customs
      • 🧠Installation
      • βš™οΈConfiguration
Powered by GitBook
On this page
  • Prerequisites
  • πŸ“¦ Installation Steps
  • SQL Tables
  • 🚨 Important Notes
  • βœ… Installation Checklist
  1. Our Scripts
  2. Billing Script

Installation

PreviousBilling ScriptNextConfiguration

Last updated 6 days ago

Prerequisites

Before installing the N4S Billing Script, ensure you have the following dependencies:

Required Dependencies

  • πŸ“¦

  • πŸŒ‰

πŸ“¦ Installation Steps

1. Dependencies Installation

  1. Install

  2. Install

  3. Ensure your framework is up to date

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

  1. Download the N4S Billing Script

  2. Place in your resources folder

  3. Add to your server.cfg or resources.cfg

  4. 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

ox_lib
bl_bridge
ox_lib
bl_bridge
πŸ”₯
πŸ“‘
🧠
Page cover image