Fivem Gang System (script)

Fivem Stand A Lone Gang System

This stand a lone resource adds Gang System with armories, vehicle garages and ability for gang members to search, handcuff people and much more.


:bookmark: Credits:

By: @yeganehha (Erfan Ebrahimi)

Notice: Do not trade/sell this script at any point and time this is licensed and 100% Free

:right_anger_bubble: Features:

  1. Possibility to create extremely gang by admin
  2. Restrict gang members by admin
  3. Add expiration time for each gang by admin
  4. Ability to select the location of boss action, armory, locker room, car, helicopter and boat by the admin for each gang
  5. Ability to adjust the amount of bulletproof vest by the admin for each gang
  6. Ability to create different accesses to the gang action menu by the admin for each gang
  7. Ability to create different ranks by the gang manager
  8. Gang salary and bank account system
  9. Set the discord log by the gang manager for his gang
  10. Ability to adjust clothes and salary for each rank for the gang manager
  11. Armories, vehicle garages, impound and locker room for each gang
  12. Ability to search for player, handcuff, drag in gang action menu
  13. Ability to open doors of locked vehicle
  14. Gang members can see each other's position on the map.
  15. And much more....
Changelog:

v 0.0.3.1 -
big update for explode character in multi character server
fix citizen error of salary
fix some other bugs

v 0.0.2.0 -
fix export
fix vehicle impound
fix drag issue when player uncuff
add animation for hand cuff player
disable All Control when player cuffed

:camera: Demo Video:

show on Youtube

:lock: Requirements:

  • This stand a lone resource and nothing required
  • Pay attention! If you want to use armories, search and salary system of gang, you should sync resource with your FiveM core like ESX.
    • For syncing this resource with your core just need too add your core function to esxBaseFunction.lua or other core you use
    • We add ESX and QBus core as default to this resource(Do not forget change your baseFunction file in the end of `__resource.lua` )

:gear: How to Install:

  1. Download the file from Github .
  2. Add all the files to the resources folder.
  3. Add the gang.sql file to the database.
  4. Sync BaseFunction.lua with your core (If your core is not ESX or QBus)
  5. Add this to your server.cfg.
    
    add_principal identifier.steam:xxxxxxxxxx group.gangManager
    add_ace resource.gang command.add_ace allow
    start gang
    
    
    change `xxxxxxxxxx` to your steam hex to access manage gangs
  6. If you want change config you should modify `config.lua` file.
  7. Restart your Fivem Server
  8. go in your server and use `/gangs` command (if not change from `config.lua` ) to open admin menu
  9. in creat gang, dont forget add expire time and other configuration
  10. palyer can use `/gang` command to refresh gang data in client

:cloud: Download:

via GitHub

Or show source on GitHub

:cloud: Developed:

you can use bellow exports in other client files

export description usage Example
isOwnGangVehicle check is vehicle related Player Gang for lock or unlock cars door
If you use esx_carlock , you can download file from here.
local vehicle = GetVehiclePedIsIn(PlayerPedId()) exports['gang']:isOwnGangVehicle(vehicle)
getGangID Get Playr Gang ID Any Where You Want exports['gang']:getGangID()
getGangGrade Get Playr Gang Grade (0 for boss) Any Where You Want exports['gang']:getGangGrade()
getGangName Get Playr Gang Name in HUD or Any Where You Want exports['gang']:getGangName()
getGangGradeName Get Playr Gang Grade Name in HUD or Any Where You Want exports['gang']:getGangGradeName()


Due to your many requests, we decided to republish with new features for this script. In case of development, how much is the donated amount from you?
Possibility:
1- Turf War
2- onesync: Infinity
3- new menu
4- new feature for gang
5- Interact with inventory script

  • 10$
  • 20$
  • 30$
  • 35$
  • 40$
  • 45$
  • 50$

0 voters


Be sure to drop a :heart: it helps you :smiley: If you have any issues with this script be sure to let me know
Do you enjoy my releases and enjoy code?

76 Likes

2 Download Links doesn’t work

2 Likes

Both of them were fixed.
Thanks for your information

1 Like

No Probem. Great work! :slight_smile:

Your script looks awesome and very promising. I’m trying to get it running on my test server. I have the database sql file imported into a DB called gang and linked via Async in the config but getting this error when I run /gangs

2 Likes

same here

hello @tromac
at first of all please rename source from gang-beta to gang
and then, please send selectFromDB from BaseFunction file to me to i check that .
and are you rename the BaseFunction in __resource.lua ?

2 Likes

Many thanks for your help.

The BaseFunction.lua has the following for selectFromDB:

function selectFromDB(query , params)
– for get data from your database
– for example:
– return MySQL.Sync.fetchAll(query, params )
end

I have renamed the resource to gang.

And in my __resource.lua I am using:

server_script ‘BaseFunction.lua’
client_script ‘BaseFunction.lua’

your welcome.

this function is Empty and nothing set for that ( All line in this function is comment ! ), are you use ESX or anything else ?

1 Like

No, it’s going on a FivePD server as standalone

where you linked via Async ?

1 Like

Very nice full script and Standalone! Thank you for this nice sharing of your work :wink:

1 Like

In my server.cfg I have:
set mysql_connection_string “user=root;database=gang”

no no no
please red installation in (https://github.com/yeganehha/gang#installation) and developed your BaseFunction file like example and sync with your core.

if you use ESX or QBus i devloped for that and dont need to redevloped BaseFunction file, but for your core, you should add your core function to BaseFunction .

1 Like

can you explain more

1 Like

I read your installation documents but they aren’t very helpful for someone with limited development ability. Having said that I understand English may not be your first language and if so you have done a great job as is. Thanks for your assistance I’ll have to give this a miss on our server as I’m not able to get it working from your docs. You don’t mention anywhere about how to connect your script to the database in the installation section.

Uploading: Screenshot_1.png…

I have ESX, I try to install but I get this error.

1 Like

Yes, exactly! In fact, English is not my first language and I can hardly convey the meaning to others.
You can extend your kernel file like esxBasFunction
However, by the end of the week I will also develop the FivemPDBaseFunction file and put it on github

1 Like

change

server_script 'esxBaseFunction.lua'

to

server_scripts {
	'@mysql-async/lib/MySQL.lua',
	'esxBaseFunction.lua'
}

in __resource.lua and dont forget to change name of resource from gang-beta to gang

1 Like