T1GER Scripts Documentation
Tebex StoreDiscordYouTubeCFX Forum
  • T1GER Scripts Documentation
  • Quick Links
    • t1ger.net | Shop Now
    • Join Discord
  • Information
    • FiveM Asset Escrow
  • Resources
    • T1GER Mechanic
      • Installation
        • Job Account
          • Setup
          • API
      • Configuration
        • Shop
      • API
        • Exports
        • Events
      • Troubleshoot
    • T1GER Library
      • Installation
        • Inventory
        • Target
        • Garage
        • Society Account
        • Vehicle Properties
      • Configuration
    • T1GER Gang System
      • Installation
      • Gang Garages
      • Product Information
    • T1GER Tuning System
      • Installation
      • API
        • Client
        • Server
      • Troubleshoot
        • Common Issues
        • Error Codes
      • Guides
        • Commands
        • Shops
        • Markers
        • Mod Stations
        • Pricing
        • Mod Orders
        • Vehicle Mods
        • Engine Swaps
        • Nitrous
    • T1GER ATM Robbery
      • Installation
      • API
        • Client
        • Server
      • Troubleshoot
        • Common Issues
        • Error Codes
      • Guides
        • Hacking Minigame
        • Dispatch
    • T1GER Dealerships
  • Free Resources
    • T1GER Keys
    • T1GER Garage
    • T1GER Bank Robbery
    • T1GER Tow Trucker
Powered by GitBook
On this page
  • Highlights
  • Information
  • Chat Commands
  • Exports
  • Events
  • Support
  • Common Issues
  • Error Codes
  1. Resources

T1GER Gang System

Documentation, troubleshooting and support for T1GER Gang System resource

PreviousConfigurationNextInstallation

Last updated 3 months ago

| | |

Highlights

Admin Gang Menu - Create and manage gangs effortlessly in-game. Adjust notoriety and cash, change leadership, or disable/delete gangs as needed.

Player Gang Menu - Permission-based menu for members to access action menu or request jobs. Higher-ranked members can manage the gang, invite new members, manage markers and ranks.

Markers - Create and manage markers for garage, stash, and cash-locker, accessible with/without pin-code.

Action Menu - Perform various actions like zip-tying, escorting, place players in vehicle or trunk, use headbags and taking hostages, all with immersive animations.

Notoriety System: Reputation-based system influencing gang activities and interactions. Jobs and gang-related activities will impact the gang's notoriety.

Rackets - Claim and compete for control of profitable rackets, such as prostitution racket or protection racket, each with their own job or activity to keep gang-members engaged.

Drug Sale - Sell drugs to NPCs with configurable prices, sell chances, and bonus areas. Avoid police alerts to build gang notoriety and maximize profits.

Customization - Extensive configurable options in config file(s) and a language file to handle all translations.

Performance - Maximum optimization resulting in smooth performance with low resource usage, even on large servers.

Sync - Fully synced across all players using OneSync Infinity and statebags.

Information

Chat Commands

Please note, all these command strings are configurable and can be disabled as well.

Command
Description

/admingang

Open the admin gang menu.

/gangmenu

Open the player gang menu.

/street

Prints street name at player coords (Config.Debug = true).

Exports

These are available exports in the resource - use them as you please and find necessary.

Admin Gang Menu

exports['t1ger_gangsystem']:AdminGangMenu()

Void:

  • Opens the admin gang menu.

Player Gang Menu

exports['t1ger_gangsystem']:PlayerGangMenu()

Void:

  • Opens the player gang menu.

Is Target Ziptied

exports['t1ger_gangsystem']:IsTargetZiptied(targetId)

Parameters:

  • The target handle (target server id).

Returns:

  • true/false (booleant)

Gets whether the target player is ziptied or not.

Get Gang Data

exports['t1ger_gangsystem']:GetGangData(id)

Paramters:

  • The gang handle (gang id).

Returns:

  • id, name, notoriety, cash, leader, ranks, members, markers, disabled, rackets (table)

Gets gang data in a table from gang id.

Get Player Gang

exports['t1ger_gangsystem']:GetPlayerGang(playerSrc)

Paramters:

  • The player handle (player server id).

Returns:

  • id, name, notoriety, cash, leader, ranks, members, markers, disabled, rackets, player(array; name, identifier, rank, rankName) (table).

Gets the player's complete gang data in a table.

Get Player Gang Id

exports['t1ger_gangsystem']:GetPlayerGangId(playerSrc)

Paramters:

  • The player handle (player server id).

Returns:

  • gang id or 0 (int)

Gets the player's gang id or 0 if not a member of any gangs.

Get Player Gang Rank

exports['t1ger_gangsystem']:GetPlayerGangRank(playerSrc)

Paramters:

  • The player handle (player server id).

Returns:

  • rank id (int)

  • rank name/label (string)

Gets the player's gang rank and rank name/label.

Get Gang Notoriety

exports['t1ger_gangsystem']:GetGangNotoriety(id)

Paramters:

  • The gang handle (gang id).

Returns:

  • gang notoriety (int).

Gets the gang's notoriety points.

Plus Gang Notoriety

exports['t1ger_gangsystem']:PlusGangNotoriety(id, amount)

Paramters:

  • The gang handle (gang id).

  • Amount to plus (int).

Adds x amount of points to the current gang notoriety points.

Minus Gang Notoriety

exports['t1ger_gangsystem']:MinusGangNotoriety(id, amount)

Paramters:

  • The gang handle (gang id).

  • Amount to minus (int).

Deducts x amount of points from the current gang notoriety points.

Is Player Zip Tied

exports['t1ger_gangsystem']:IsPlayerZiptied(playerSrc)

Paramters:

  • The player handle (player server id).

Returns:

  • The player's zip tied state (boolean).

Gets whether the player is zip tied or not.

Set Player Zip Tied

exports['t1ger_gangsystem']:SetPlayerZiptied(playerSrc, bool)

Paramters:

  • The player handle (player server id).

  • set zip tied (true) or remove zip tied (false)

Sets the player's ziptied state. In case you want to stop a player's ziptied state from another resource.

Events

These are optional events that you may need to use from other resources to add compatibility.

Plus Notoriety Points

TriggerServerEvent('gangsystem:server:plusNotoriety', gangId, points)

Paramters:

  • The gang handle (gang id) or nil (script will find gang id from the source player).

  • points to add (int).

Adds x points to the gangs current notoriety points.

Minus Notoriety Points

TriggerServerEvent('gangsystem:server:minusNotoriety', gangId, points)

Paramters:

  • The gang handle (gang id) or nil (script will find gang id from the source player).

  • points to deduct (int).

Deducts x points from the gangs current notoriety points.

Plus Gang Cash

TriggerServerEvent('gangsystem:server:plusGangCash', gangId, cashAmount)

Paramters:

  • The gang handle (gang id) or nil (script will find gang id from the source player).

  • cash to add (int).

Adds x cash to the gangs cash locker.

Minus Gang Cash

TriggerServerEvent('gangsystem:server:minusGangCash', gangId, cashAmount)

Paramters:

  • The gang handle (gang id) or nil (script will find gang id from the source player).

  • cash to deduct (int).

Deducts x cash from the gangs cash locker.

Support

Common Issues

Before we proceed, please ensure the following:

  1. Resource folder of the package is named: t1ger_gangsystem.

  2. You have not touched nor edited files inside t1ger_gangsystem/escrow/.

  3. You have not made any custom changes.

Error Codes

If you getting an error code in your server- or client-console, then please find the error-code from below and fix your issue with the provided instructions.

#7983 - Inside Config.DrugSale.Items you've added/edited a key that does not have a reference to Config.Items that handles item names for these keys. Please add your key inside Config.Items and a respective item name for the key.

TITLE Question/Issue

Solution/Answer/Instruction

❓
✔️
View on Tebex
CFX Forum Post
YouTube Showcase
Discord