Installation Advanced Detailed

Installation Advanced Detailed

This guide will walk you through the complete installation process of the God-Impound system on your FiveM server.

πŸ“¦ Prerequisites

Before starting the installation, make sure you have:

  • βœ… FiveM server with admin access

  • βœ… ox_lib installed and running

  • βœ… oxmysql installed and configured

  • βœ… screenshot-basic resource installed

  • βœ… ESX, QBCore, or Qbox framework installed

  • βœ… ox_inventory or qb-inventory installed

πŸ“₯ Step 1: Download and Extract

  1. Download the God-Impound script from your purchase

  2. Extract the God-Impound folder to your server's resources directory

  3. Ensure the folder structure looks like this:

    resources/
    └── God-Impound/
        β”œβ”€β”€ client/
        β”œβ”€β”€ server/
        β”œβ”€β”€ shared/
        β”œβ”€β”€ html/
        β”œβ”€β”€ install me/
        └── fxmanifest.lua

πŸ—„οΈ Step 2: Database Setup

  1. Open your database management tool (phpMyAdmin, HeidiSQL, etc.)

  2. Select your FiveM database

  3. Open the SQL file located at: God-Impound/install me/runme.sql

  4. Execute the SQL query to create the impound_vehicles table

The SQL will create a table with the following structure:

  • plate (varchar) - Vehicle plate number

  • image (text) - Proof image URL

  • polname (text) - Officer name who impounded

  • impoundDays (int) - Number of days impounded

  • lawId (int) - Law violation ID

  • impoundUntil (datetime) - Release date and time

βš™οΈ Step 3: Framework Configuration

For QBCore/Qbox Users:

  1. Open God-Impound/shared/config.lua

  2. Set the framework:

  3. Set your police job name:

For ESX Users:

  1. Open God-Impound/shared/config.lua

  2. Set the framework:

  3. Set your police job name:

πŸ“· Step 4: Camera Item Setup

The script requires a camera item in your inventory system. Follow the instructions for your inventory:

For ox_inventory:

  1. Copy the camera icon:

    • Source: God-Impound/install me/icons/camera.png

    • Destination: ox_inventory/web/images/camera.png

  2. Add the item to ox_inventory/data/items.lua:

For qb-inventory:

  1. Copy the camera icon:

    • Source: God-Impound/install me/icons/camera.png

    • Destination: qb-inventory/html/images/camera.png

  2. Add the item to qb-core/shared/items.lua:

πŸ”— Step 5: Image Logging Setup

Configure image logging for proof photos:

  1. Create a Discord webhook in your Discord server

  2. Open God-Impound/shared/config.lua

  3. Set the service:

  4. Add your webhook URL:

Option 2: FivemManage API

  1. Get your FivemManage API key

  2. Open God-Impound/shared/config.lua

  3. Set the service:

  4. Add your API key:

πŸ“ Step 6: Configure Locations

  1. Open God-Impound/shared/config.lua

  2. Set the impound ped location:

    • Format: vector4(x, y, z, heading)

    • Use /tp command in-game to find coordinates

  3. Configure vehicle spawn points:

    • Add more spawn points by adding more entries

    • Vehicles will spawn at random locations from this list

🎯 Step 7: Customize Laws (Optional)

You can customize the impound laws in God-Impound/shared/config.lua:

πŸš€ Step 8: Start the Resource

  1. Add the resource to your server.cfg:

  2. Restart your server or start the resource:

βœ… Step 9: Verification

After installation, verify everything is working:

  1. Check Console: Look for any errors in the server console

  2. Test Commands:

    • /impound - Should open the impound menu (police only)

    • /camerasshow - Should open the camera (police only)

  3. Check Ped: Visit the impound location and verify the NPC ped is spawned

  4. Test Impound: Try impounding a vehicle to ensure the system works

πŸ”§ Troubleshooting

Resource won't start

  • Check that all dependencies (ox_lib, oxmysql) are installed

  • Verify fxmanifest.lua is correct

  • Check server console for specific errors

Camera not working

  • Ensure screenshot-basic is installed and started

  • Verify camera item is added to inventory correctly

  • Check image logging configuration

Database errors

  • Verify SQL was executed correctly

  • Check database connection in oxmysql

  • Ensure table impound_vehicles exists

Framework errors

  • Double-check J0.Core setting in config.lua

  • Verify framework resource name matches (qb-core, es_extended, etc.)

  • Check that framework is started before God-Impound

πŸ“ Next Steps

After successful installation:

  1. Read the Configuration Guide to customize settings

  2. Review available Commands

  3. Check the FAQ for common questions


Installation Complete! πŸŽ‰

Your God-Impound system is now ready to use. Police officers can start impounding vehicles using the /impound command.

Last updated