Cosmos Studios Docs
Discord
  • πŸ””Welcome to Cosmos Studios Docs!
  • πŸ‘¨β€πŸ’»Scripts
    • πŸ—ΊοΈTerritories
      • 🎨Features
      • πŸ“šInstallation
      • ⌨️Commands
      • βš™οΈConfiguration
      • πŸ€™Exports
        • Client
        • Server
Powered by GitBook
On this page
  • General features
  • ESX Specific features
  1. Scripts
  2. Territories

Features

Cosmos territories script features

Last updated 1 year ago

This script is only compatible with es_extended (ESX) and qb-core (QBCore)

General features

The script is characterized by allowing users to mark territories on the map according to their preference. It won't be necessary for it to be an area on the GTA map; users can establish zones wherever they want.

The script will come preconfigured with the following options:

  • Selling drugs will increase the organization's influence while decreasing the influence of the more powerful organization.

  • Having the highest influence in a territory will allow for a benefit to be applied to the sale (configurable in config.lua).

  • Graffitiing will increase the organization's influence. (This option needs to be implemented by the user in their graffiti script; the script doesn't include graffiti functionality)

  • Killing a member of another gang within a territory will increase the killer's influence and decrease that of the user's gang whose member was killed. (Applies only to gang members)

  • Territory influence may decrease if no member of that gang is present within the territory.

  • Being handcuffed by a police officer within a territory will decrease influence. (This option might need configuration by the user if not using the core police scripts).

As mentioned above, the script includes drug sales to NPCs. This is an option that can be removed if you want to use another script or if there's inventory incompatibility. Drug sales to NPCs have the following features:

  • Specific drug per territory (optional).

  • Enable/disable via command.

  • Interaction within the same script (Not dependent on 'target').

  • Sale notification with seller's image (Will reach the gang with the most influence in that territory).

INCOMPATIBILITY OF INVENTORIES

It's possible that the script might not be compatible with the server's inventory. This would only affect the drug sale aspect, but the rest of the script would continue to function. If compatibility with a specific inventory is desired, it can be requested or simply disable the sale and use another script for that purpose.


ESX Specific features

The script was initially developed in QBCore, so some features like the 'gangs' management table won't exist in ESX. However, this isn't an issue for this script.

Include in the configuration file the option to set ESX as the core. If ESX is set as the framework, it will start working with its own internal 'gangs' tables, operating similarly to QBCore. In this scenario, it will also be possible to export the player's table with the organization to other scripts without having to modify any core resource.

All gang table management will be escrow-free and can be modified freely.

ESX Gang table:

gangs.lua
Territories.Shared.Gangs = {
  ["none"] = {
    ["label"] = "No Gang",
    ["grades"] = {
      ["0"] = {
        ["name"] = "No afiliated"
      },
    },
  },
  ["vagos"] = {
    ["label"] = "Los Santos Vagos",
    ["grades"] = {
      ["0"] = {
        ["name"] = "Hommie"
      },
      ["1"] = {
        ["name"] = "Boss",
        ["isboss"] = true
      },
    },
  }
}

This only applies to ESX, ignore if you are a QBCore user.

πŸ‘¨β€πŸ’»
πŸ—ΊοΈ
🎨
"Cosmos territories showcase banner"
Territories in-game podium
Selling drugs alert (Send to gangs)
Territories pannel
Page cover image