😡
RAINMAD Documentation
WebsiteStoreDiscordYouTube
  • Welcome to RAINMAD Scripts
  • INFORMATION
    • FAQ
    • Support and Assistance
    • Discord Roles
    • How to Update Your Asset
  • CFX Auth system
    • FiveM Asset Escrow System
  • Development Guide
    • Common Issues
    • How to Add Webhooks
    • Target Options Configuration
    • How to Translate Your Script
    • How to Integrate Your Custom Notification Script
    • How to Change the Black Money Name
    • How to Add an Item
    • How to Change the Dispatch
    • Framework Selection and Configuration
    • Finding Item Images
  • RESOURCES
    • Cargo Ship Heist
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Configuration
      • Exports
    • Below the Vault Heist
      • Installation
    • NPC Mechanic
      • Installation
      • Configuration Guide
    • Cash Exchange Heist
      • Installation
      • Dependencies
    • Drugs V: Grow, Cook & Space!
      • Installation
      • Configuration Guide
    • Drugs V: Laboratories
      • Installation
      • Configuration Guide
    • Drugs V: Goods Deal
      • Installation
      • Configuration Guide
    • Drugs V: Business Labs
      • Installation
      • Configuration Guide
    • Drugs V: Effects
      • Installation
      • Configuration Guide
      • Exports
    • Drugs V: Money Laundering
      • Installation
      • Configuration Guide
    • Bank Truck Robbery - 4 in 1!
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Events & Exports
      • Disable Mission NPC
    • House Robbery with Welding Minigame
      • Installation
      • Dependencies
      • Inventory Integration
      • Translate Strings
      • Discord Log
      • Creating a House for Robbery
      • Events & Exports
      • Disable Mission NPC
    • Lootbag
      • Installation
    • Bounty Board
      • Installation
    • Chopshop with Welding Minigame
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Events & Exports
      • Disable Mission NPC
    • Scenes: Draw everywhere
      • Installation
      • Add Text Font
      • Events & Exports
    • Vault Heist
      • Installation
      • Vehicle Mods
      • Dependencies
    • Barge Heist
      • Installation
      • Dependencies
    • Towtruck + Missions
      • Installation
    • Zombies & Dungeon
      • Installation
      • Rarity System
    • Gangs - Territory, Wars & Tribute Zones!
      • Installation
      • Add Gang & Tribute Zone
      • Events & Exports
      • Gang System for ESX
    • Camper V: Drug Caravans
      • Installation
      • Dependencies
    • Realistic Airdrop
      • Installation
    • ATM Robbery - 4 in 1!
      • Installation
    • Bobcat Security Heist
      • Installation
      • Dependencies
    • Minigame Bundle
      • Installation
      • Minigame Exports
      • Translate Strings
    • Weapon V: Realism
      • Installation
    • Boombox with Watch Party
      • Installation
      • Youtube API Key
      • Exports
    • Drop and Dead Info.
      • Installation
    • Throw Everything
      • Installation
      • Useable Items
      • Exports
      • QBCore Compatibility
      • ESX Compatibility
    • Police Riot with Interior
      • Installation
      • Dependencies
    • Dialog with NPC
      • Installation
    • Gun Store Heist
      • Installation
      • Dependencies
    • Emoji V: Share Feelings
      • Installation
    • Illegal Corners: Selling Goods
      • Installation
      • Adding a New Corner
    • Decal V: Graffiti & Vehicle Sticker
      • Installation
      • Custom Decal
      • Events & Exports
    • Hacker V: Become Hacker
      • Installation
      • Custom Hack
      • Functions & Events
    • Weed Shop Heist
      • Installation
      • Dependencies
    • Jailbreak
      • Installation
      • Dependencies
    • Vangelico Heist Final
      • Installation
      • Dependencies
    • Pets
      • Installation
      • QBCore Compatible
    • Artifact Heist
      • Installation
    • Betta Heist
      • Installation
    • Oil Rig Heist
      • Installation
      • Dependencies
    • Fleeca Heist Final
      • Installation
      • Dependencies
    • Deluxe Car Heist
      • Installation
    • Yacht Heist
      • Installation
    • Paleto Heist
      • Installation
    • Union Heist
      • Installation
    • Shop Robbery
      • Installation
    • Drug Boat Heist
      • Installation
    • Underground Heist
      • Installation
      • Dependencies
    • Van Heist
      • Installation
      • Dependencies
    • Pacific Heist
      • Installation
      • Dependencies
    • Train Heist
      • Installation
    • Humane Labs Heist
      • Installation
    • Vangelico Heist
      • Installation
    • Fleeca Heist
      • Installation
    • Casino Heist
      • Installation
      • Dependencies
      • Compatible For Rcore
    • Art Heist
      • Installation
      • Dependencies
    • Kidnapping
      • Installation
    • Graffiti War
      • Installation
Powered by GitBook
On this page
  • Config (cfg.lua)
  • Notes
  1. RESOURCES
  2. Gangs - Territory, Wars & Tribute Zones!

Add Gang & Tribute Zone

On this page, I'll give you snippets on how to add gang and tribute zone to Gangs - Territory, Wars, Tribute Zones!

PreviousInstallationNextEvents & Exports

Last updated 3 months ago

Config (cfg.lua)

If you want to add new gang or tribute zone, you must add it to the config. I will explain how to add.

Add New Gang

  • We need use ox_lib zone creation for add new gang. After installed ox_lib, write /zone poly command in-game and open zone editor. Once you have selected the points you want, save them with any name. Go to ox_lib/created_zones.lua and you will see similar below picture. Copy points table and thickness.

  • Open the config file. (rm_gangs/cfg.lua)

  • Find this lines:

    cfg.gangs
  • Add new gang like this:

    ['newGangName'] = { -- /setjob /setgang name
            color = '#newGangColor',
            territory = { -- created_zones.lua points, paste here
                points = {
                    vec3(857.0, -833.0, 43.0),
                    vec3(846.0, -346.0, 43.0),
                    vec3(942.0, -327.0, 43.0),
                    vec3(1020.0, -213.0, 43.0),
                    vec3(1206.0, -270.0, 43.0),
                    vec3(1224.0, -363.0, 43.0),
                    vec3(1271.0, -538.0, 43.0),
                    vec3(1380.0, -569.0, 43.0),
                    vec3(1370.0, -757.0, 43.0),
                },
                thickness = 68.0, -- created_zones.lua thickness, paste here
            },
            locations = { -- new gang coords, if you want remove any menu, just comment line example: stash below
                menu = vec3(0.0, 0.0, 0.0),
                clothing = vec3(0.0, 0.0, 0.0),
                garage = vec4(0.0, 0.0, 0.0, 0.0),
                --stash = vec3(0.0, 0.0, 0.0),
            },
        },

Add New Tribute Zone

  • We need use ox_lib zone creation for add new tribute zone. After installed ox_lib, write /zone poly command in-game and open zone editor. Once you have selected the points you want, save them with any name. Go to ox_lib/created_zones.lua and you will see similar below picture. Copy points table and thickness.

  • Open the config file. (rm_gangs/cfg.lua)

  • Find this lines:

    cfg.tributeZones
  • Add new tribute zone like this:

    {
            name = 'new_tribute_zone',
            label = 'New Tribute Zone',
            paymentAmount = 1500,
            npc = {
                model = `a_m_m_bevhills_02`,
                coord = vec4(82.78, -1553.80, 29.60, 50.47), -- tribute giving npc position
            },
            territory = {
                points = { -- created_zones.lua points, paste here
                    vec3(857.0, -833.0, 43.0),
                    vec3(846.0, -346.0, 43.0),
                    vec3(942.0, -327.0, 43.0),
                    vec3(1020.0, -213.0, 43.0),
                    vec3(1206.0, -270.0, 43.0),
                    vec3(1224.0, -363.0, 43.0),
                    vec3(1271.0, -538.0, 43.0),
                    vec3(1380.0, -569.0, 43.0),
                    vec3(1370.0, -757.0, 43.0),
                },
                thickness = 68.0, -- created_zones.lua thickness, paste here
            },
            resetCronExpression = '00 20 * * mon', --on monday at 08:00 PM
            captureDuration = 10,                  --minutes
        },

Notes

-- tribute zone event starts automatically on the server when the time defined in resetCronExpression arrives
-- also admins and authorized persons can start the event at any time with the "starttribute" command
-- https://overextended.dev/ox_lib/Modules/Cron/Server#cron-expression
-- https://crontab.guru/#0_20_*_*_fri