Veil Development Documentation
  • General
    • Documentation
    • Support
  • Paid Resources
    • Gang System
      • Installing the Resource
      • Creating Gang Sprays
      • Setup
      • Activity System Guide
      • Listeners
      • Common Errors
      • Available Functions
      • Commands
    • Government System
      • Installing the Resource
      • Setup
      • Listeners and Exports
      • Item Setup
    • K9 System
      • Installing the Resource
    • Image Placer
      • Installing the Resource
      • Setup
Powered by GitBook
On this page
  1. Paid Resources
  2. Gang System

Setup

Instructions for the Gang System Setup

Start Up On the initial start-up of the script, the system will automatically create all gangs currently in your qb-core/shared/gangs.lua, the system will continue to do so every time the script starts, so there is no need to manually create gangs and it is HIGHLY DISCOURAGED TO MANUALLY CREATE GANGS, the system also grabs ALL members of the gang it's creating from your players sql table in the database

Configuration Not all configurable items are located in the UI as it would be ALOT to add to the UI, so things not configurable by the UI is the Tabs access, this is done in the shared/ui.lua, this way you can configure who can access what tabs, next is all the police jobs. The police jobs are located in shared/basic_config.lua

YOU WILL NEED TO PUT YOUR DATABASE NAME IN shared/basic_config/Database variable

Something you will most likely not need to configure unless you use a different permission system than the QBCore one is the Is_User_A_Admin function, this is located in shared/functions.lua

What do I need to do? All you need to do is login and use the command gangs:opengangui and go to theConfiguration Page, scroll to the very bottom and click Save Changes and wait for the confirmation via the Notify

Permissions This system comes with it's own Permission Checks. There are 3 permissions veil_gang.god, veil_gang.admin andveil_gang.user You can assign these permissions via your server.cfg. Example:

add_ace identifier.fivem:000000"veil_gang.god" allow
add_ace identifier.fivem:000000"veil_gang.admin" allow
add_ace identifier.fivem:000000"veil_gang.user" allow

You can assign ACE permissions using identifiers such as license as well.

The veil_gang.god permision has access to everything in the Gang System. veil_gang.user is for regular users, without administration permissions.

PreviousCreating Gang SpraysNextActivity System Guide

Last updated 7 months ago