[PAID][QBCore] Gang system

Features

  • If you place a gang flag, peds mentioned in config for that gang will spawn near that area to provide realism.
  • Gangs can buy one flag and one flag removal once every tsunami.
  • Price of gang flags increase as they keep on buying it. (more flags, more money, multiplier is available in config)
  • More flags placed, more money they get from selling drugs. Multiplier and everything is present in config.
  • Event to trigger to buy flags/removal is given in cl_buyflags.lua. Trigger that event through qb-target or wherever you want to.
  • Lot of configurable values to play with the count of gang members, time required to rob, etc are present in config.lua
  • Make sure to read through unencrypted files to edit target options, notification, mail, etc to suit your needs.
  • Flags can be placed next to each other and doesnt allow players to place their gang flags all over the place
  • Can add as many gangs you want (make sure the props are different so that the targets dont mix up. Check Config to add more gangs and follow it.)
  • Option to customize the drugs sold at cornerselling. Can add as many drugs you want.
  • Support added for circular progressbar to change font awesome icons
  • Reputation factor where more the locals of your gang are robbed, lesser money you make while cornerselling, you need to cornersell more to get build your reputation back.
  • Everything is persistent i.e it can go through server restarts.
  • Blips can be toggled using /toggleblip command (logic can be found in cl_customise.lua)
  • Comes with preconfigured 4 gangs and 6 flag props (2 can be configured)
  • Video probably coming soon. Since the features are too many, kind of difficult to make a video showcasing each and everything.

Requirement

  • qb-core
  • qb-target
  • qb-menu (optional, you can adapt to your own by editing cl_buyflags.lua)

Buy here - TEBEX
Showcase

Asset is encrypted using fivem escrow system but a lot of configurable values are present for you to edit plus couple of files are unencrypted too.

Code is accessible Yes (some part is, it is encrypted using fivem asset escrow)
Subscription-based No
Lines (approximately) 1500
Requirements qb-core, qb-target, qb-menu
Support Yes

3 Likes

Will there be a ESX Version?

probably not! sorry

1 Like

Updates

  • Fixed peds spawning in air (still in experimental stage, if my logic doesnt work, I will start blacklisting the models that cannot be converted)
  • Fixed error spam on console when player with no gang or gang not present in config join. (Only the gangs present in config are being used, so make sure to add them)
  • Optimized the thread for object spawning
  • Script currently runs at 0.00ms most of the time
  • Fixed robbing locals logic (never accounted for customers who set the minimum gang members required to 0, so addressed that)
  • unencrypted part that spawns the peds (do not edit it if you are unsure what to do, it is unencrypted so you can edit if peds spawn in the air)
  • added new config for money type required for different things like buyflags, selldrugs, buyremoval and robLocal (if people wish to give crypto or money in bank instead of cash)
  • fixed the bug with buying flags taking out money if already bought
  • created two exports to use in other scripts if you want (GetGangFlags and GetGangMembersCount , check fxmanifest for info on how to use them)
  • fixed coords not showing properly when destroying flags
  • fixed peds not unfreezing after robbed
  • fixed shovel not being removed when destroying flags