Installation

Installation Guide

Prerequisites

Before installing this resource, ensure you have the required dependencies:

Important: Glitch Abstraction is a critical dependency that manages framework compatibility, allowing our resources to seamlessly integrate with your existing server setup.

Installation Steps

1. Repository Setup

Clone the repository to your local machine and locate the glitch-lootBox folder.

2. File Placement

Move the glitch-lootBox folder into your FiveM server's resources directory:

/resources/glitch-lootBox/

3. Server Configuration

Add the resource to your server.cfg file:

4. Adding Items

You do not have to do this as you can create any item into a loot box by just adding it to the config but for some pre created ones

Example SQL for adding ammo crate items to your database

For QBCore (qb-core/shared/items.lua) or for OX inventory add these into (ox_inventory/data/items.lua)

4. Permissions Verification

Ensure your server has the necessary permissions to execute the script and all its components.

Final Notes

Once installation is complete, restart your server to activate the loot box system. The resource will automatically integrate with your existing framework through Glitch Abstraction.

Last updated