Installation Guide
Laser System Overview
Prerequisites
Before installing the GOD Laser System, ensure you have the following dependencies:
Required Dependencies
ox_lib - Required for UI components and callbacks
Download: ox_lib
Ensure it's started before the laser system in your
server.cfg
Framework - One of the following:
QBCore: qb-core
ESX: es_extended
Qbox: qbox_core
Inventory System - One of the following:
QB-Inventory: qb-inventory
OX-Inventory: ox_inventory
Installation Steps
Step 1: Download and Place Files
Download the GOD Laser System script files
Extract the files to your server's
resourcesfolderRename the folder to
lasersystem(or your preferred name)
Step 2: Configure Framework and Inventory
Open
shared/config.luaSet your framework:
Set your inventory system:
Step 3: Add Items to Your Inventory
For OX-Inventory Users
Navigate to your
ox_inventory/data/items.luafileAdd the following items:
Navigate to
ox_inventory/modules/items/client.luaAdd the following item usage handlers:
For QB-Inventory Users
Navigate to your
qb-inventory/html/images/folderAdd the item images:
laser_remover.pnglaser_device.pnglaser_devicepol.png
Navigate to your
qb-inventory/shared/items.luafileAdd the following items:
Note: QB-Inventory automatically handles item usage through the
CreateUseableItemfunction in the server script, so no additional client-side code is needed.
Step 4: Add to Server Configuration
Open your
server.cfgfileAdd the following line (ensure
ox_libis started before it):
Step 5: Configure Shop Location (Optional)
Open
shared/config.luaModify the shop coordinates and ped model:
Step 6: Restart Server
Restart your FiveM server
The script will automatically create the
shared/database.jsonfile on first runVerify the script loaded successfully by checking the server console for initialization messages
Post-Installation
After installation, players can:
Visit the shop NPC at the configured coordinates
Purchase laser devices and removers
Use the
laser_deviceorlaser_devicepolitems to place lasersUse the
laser_removeritem to remove placed lasers
Verification
To verify the installation is working correctly:
Check server console for any error messages
Ensure
ox_libis running and loadedTest purchasing items from the shop
Test placing a laser using a laser device item
Test removing a laser using a laser remover item
Installation complete! Your laser system is now ready to use.
Last updated