[QB] qb_tk_gangareas - Gang Areas

qb_tk_gangareas

[ Video ]
[ ESX version ]

About

This scripts adds a new activity for your server’s gangs; gang areas / gang wars / territories. Script has been tested with latest QBCore version, but should work with all. If not, you can always contact me!

Features

  • Well-optimized
    • 0.00 ms | Idle
    • 0.02 ms - 0.10 ms | In usage
  • Uses FiveM Asset Escrow system, but if there is anything you would like to get changed or added to the editable file, contact me and I can probably change it!
  • Highly customizable
    • Change everything related to NPCs (health, armor, weapons, etc.)
    • Add & remove areas
    • Change blips and markers
    • & much more
  • How does it work? (watch video above for a good understanding)
    • There are in total 9 different gang areas around the map (you can add more)
    • By default, all areas are uncaptured
    • Trying to capture an area will spawn waves of NPCs with weapons that will try to shoot you
      • If you die or walk too far away, the capturing will fail
      • If you manage to defeat all the waves, the area will become your gang’s own area
    • When you own an area, you can:
      • Put items, weapons and money in the area stash
      • Take items, weapons and money from the area stash
      • Wash money (configurable time and fee)
      • The main reason you’d want to own an area is because you can generate items into the area stash
        For example, you can start generating weapons or drugs and they will automatically be placed in your area stash
      • All areas have separate stashes etc.
    • Areas also have a level
      • Areas will automatically level up with time
      • The level affects how fast the area washes money and how fast items generate
    • Other gang’s can capture your area
      • In that case, NPCs will spawn that will defend your area
      • You will also get a notification, if someone tries to capture your area
      • If the capturer manages to defeat all the waves of NPCs, their gang will now own the area
      • Only the area level will reset when captured. All the items inside the stash and money in the money washer will stay
Screenshots

3

4

5

6

7

8

Config

Requirements

Purchase (19.99€ + VAT)


My other QBCore Scripts


Code is accessible No
Subscription-based No
Lines (approximately) ~1300
Requirements qb-core, qb-menu, qb-input, mysql-async or oxmysql
Support Yes

Could it be set so that a gang area could only generate a specific item ? For example: grove street could only be able to generate weed and cypress could only generate coke?

1 Like

Yes, I can definitely do that. I’ll add that within a few days and post an update here when it’s done.

1 Like

Okay thanks! Will be looking forward to that and will purchase it then

Update 1.0.1

  • New config option Config.GenerateItemsAreas; you can specify items for certain areas, if an area is not here, then items from ‘Config.GenerateItems’ will be used

Hey so when a gang takes over another gangs area, the area level does NOT reset.

This has been fixed in the latest update.

Update 1.0.1

  • New config option Config.GenerateItemsAreas; you can specify items for areas, if an area is not here, then items from ‘Config.GenerateItems’ will be used

Update 1.0.2

  • Fixed money washing

Update 1.0.3

  • Fixed areas not loading on server start

Update 1.0.4

  • Fixed area level not updating to the menu

Update 1.0.5

  • New config option Config.MoneyWashItem, name of item that can be put in the money washer

Update 1.0.6

  • Fixed leveling up not working as intended

is there a way to have it where no AI can come defended the block?

Update 1.0.7

  • Fixed crashing with latest GTA V game build

can I buy the open source version please?

Hey! I unfortunately don’t sell open source version of my scripts.

Update 1.1.0

  • New config option Config.NoPedMode . Alternative mode to capturing areas. When set to true, to capture an area you just need to stay inside the marker area for a certain time.

Update 1.1.1

  • New config option Config.MarkerForEveryone

Update 1.1.2

  • Moved the StartCapturingNoPeds(area) function to the editable client file

Update 1.1.3

  • Fixed peds not spawning on rare occasions

Is the drawtext part open source? :smiley:

Yes, it is.

Im interested in buying, but could you please share previews of the open source parts if thats okay?

Hey! Currently only notifications, draw text function and the capturing with no peds functions are in the editable files. If there is something you’d like to edit or get added, let me know and I’ll if we can work something out.