JP5M Docs
TebexDiscord
  • About JP5M
  • Paid Scripts
    • jp-refstart
      • Installation
      • Configuration
      • Admin Panel
  • jp-dutyblips
    • Installation
    • Configuration
  • jp-multijob
    • Installation
    • Configuration
  • jp-territories
    • Installation
    • Configuration
      • Base Configuration
      • Territory Configuration
      • Add-ons
  • Free Scripts
    • jp-elevator
      • Installation
      • Configuration
Powered by GitBook
On this page
  • Zone buying
  • Gang colors for map blips
  • Implementing your HUD
  1. jp-territories
  2. Configuration

Base Configuration

This will show you the base configuration for this script.

Config.ShowBlips = true

Whether or not to show a blip for each territory on the map.

Config.onlyShowBlipsToGang = true

Only allow players in a gang to see map blips.

Config.ShowRectangleZones = true

false deactivates all territories.

Config.TimeInterval = 3000

The amount of time that goes in between Playerdistance checks.

Config.pedModel = 'g_m_y_famfor_01'

The ped model for the territories interaction, spawns one for each territory.

Config.pedScenario = "WORLD_HUMAN_DRUG_DEALER"

The animation the ped for the territories interaction.

Config.gangKillProgressAmount = 15

Amount of progress that gets added when a gang member is killed by another gang inside of a zone. Progress for each territory and gang goes from 0 (not captured at all) to 100 (captured).

Zone buying

Config.enableBuyingZones = true

Enables buying zones with black money.

Config.buyingAbovePercentage = 50

If buying is enabled, the progress a gang needs to reach to allow them to buy a territory. Progress for each territory and gang goes from 0 (not captured at all) to 100 (captured).

Config.buyingCost = 25000

If buying is enabled, the cost of buying a zone with black money.

Gang colors for map blips

Config.useGangColors = true
Config.GangColors = {
    ["ballas"] = 83,  -- Purple
    ["vagos"] = 46,   -- Yellow
    ["families"] = 2, -- Green
    ["aod"] = 72,   -- black
    ["eastside"] = 59   -- red
}

Implementing your HUD

Config.ToggleHUD = function(show)
    if show then
        ExecuteCommand("toggleall")
    else
        ExecuteCommand("toggleall")
    end
end

When a player opens the interaction UI we disable his HUD temporarily, to make this work you will need your own HUD exports here. In this example we simple make the player do /toggleall command.

PreviousConfigurationNextTerritory Configuration

Last updated 1 month ago

You can disable this feature by settings useGangColors to false. You will need to implement each of your gangs associated color here. See for information on blip colors.

this documentation