Skip to content

Allow you to make Gang Zone to warn players when they are in hostile area

License

Notifications You must be signed in to change notification settings

Ademo93/qb-territories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qb-territories

This script is a lighter version of the Mojito-fivem qb-gangs (https://github.com/Mojito-Fivem/qb-gangs) I isolated the territories part of his script to create a configurable zone that will trigger a notification and a drawtext to warn you that you are in a "hostile zone"

Preview

https://streamable.com/vev30g

https://streamable.com/gs50m7

Update

  • Multi-Languages support
  • Config blips for each zone
  • GangName on Blips
  • Zone Control

How to add zone ?

to add zone you have to go in shared/zones.lua line 7 and add your zone like this =

[4] = {
            centre = vector3(37.38, -1880.71, 22.34),
            radius = 120.0,
            winner = "Ballas",
            blip = 437
        },
[5] = {
            centre = vector3(x, y, z),
            radius = 90.0,
            winner = "The gang color/name",
            blip = 437
}

Remember that the winner variable is the color of the gang that you configure line 46 =

["Colours"] = {

        ["Ballas"] = 27,
        ["the gang color/name"] = 10

}

You can find color id here -> https://wiki.rage.mp/index.php?title=Blip::color

Requirements

  • qb-drawtext
  • PolyZone