Create Gangs & Zones

Quasar Gangs & Territories is a huge system that includes a Gang creator through the config.lua file, there we can create countless Gangs, Territories and Zones for these groups, where they will find their storage, a specific garage and the boss menu.

Can I eliminate the "none" or "neutral" gang?

No, these cannot be removed. In the following document we explain why and how both are executed.

Can I create gangs within the game without using config.lua?

No, you must create them using the configurable file as explained in this document.

I can't translate Gang action locations

Of course you can, you must do it in Config.Locations within config.lua.


Creation of Gangs and their territories

Do not delete the Gang called none or neutral, since it is the one we will use when a player no longer belongs to any Gang or the terrain is free, if you delete it, it could break the system.

Each Gang has a personal territory for them, which will be marked on the map only for all members of said Gang, this can be created, edited and configured completely in config.lua following the following example below.

Remember to fully configure the RGB colors and positions of each gang action.

Config.Gangs = {
    ['none'] = {}, -- Ignore this gang, it's for when you're not a gang

    ['neutral'] = {
        ['territoryColor'] = 55, -- Ignore this gang, here is the default color without conquest
    },

    ['ballas'] = { -- Gang id
        ['label'] = 'Ballas', -- Gang visual tag
        ['color'] = { 151, 8, 120 }, -- Gang color (in rgb)
        ['territoryColor'] = 27, -- Territory blip color (https://docs.fivem.net/docs/game-references/blips/)
        ['locations'] = {
            ['boss'] = vector3(114.329674, -1961.116455, 21.326782),
            ['stash'] = vector3(102.936264, -1959.771484, 20.821289),
            ['vehicles'] = vector3(116.927475, -1949.235107, 20.720093),
            ['heading'] = 56.692913
        },
        ['blips'] = {
            [1] = { name = 'Ballas Zone', sprite = 84, color = 27, size = 0.6, coords = vec3(108.131866, -1941.085693, 20.787598) }
        },
        ['vehicles'] = {
            { ['model'] = 'avarus',     ['label'] = 'Avarus',    ['icon'] = 'fas fa-motorcycle' },
            { ['model'] = 'buccaneer2', ['label'] = 'Buccaneer', ['icon'] = 'fas fa-car-alt' }
        }
    },
    -- Other gangs...
}

Remember that to translate the help texts in the previously created locations, we must use the following configuration, do not add more events or values.

Config.Locations = {
    ['stash'] = {
        ['help'] = '[E] Open stash',
        ['event'] = 'gangs:openStash'
    },
    ['boss'] = {
        ['help'] = '[E] Open boss menu',
        ['event'] = 'gangs:requestOpenBoss'
    },
    ['vehicles'] = {
        ['help'] = '[E] Open garage',
        ['event'] = 'gangs:vehiclesMenu'
    },
}

Last updated

Was this helpful?