rytrak.fr Documentation
  • 🛡️FiveM Assets Escrow
    • You lack the required entitlement
    • Failed to verify protected resource
    • Error parsing script / Failed to load script
  • ❓Store FAQ
    • Do you accept orders to create a custom script
    • Do you give decrypted scripts
    • What payment methods are accepted for the purchase of your scripts?
    • Do you offer discounts or special offers on your scripts?
    • Can I modify or customize your scripts to meet my needs
    • Are your scripts compatible with frameworks
    • Do you provide development assistance?
  • FiveM Scripts
    • 🚒Firefighter SCBA System
      • General Configuration
      • Adapt your EUP
      • General Exports
      • General Events
      • ❓FAQ
        • No such export IsFireNearby in resource SmartFires
      • Test it now
    • 👮‍♂️Advanced Police Grab Ped
      • General Configuration
      • General Exports
      • General Events
      • Compatibility with esx_policejob
      • Test it now
    • 🚿Advanced Pepper Spray
      • General Configuration
      • General Exports
      • Anticheat
      • Test it now
    • 📣Advanced Megaphone System
      • General Configuration
      • General Exports
      • Compatibility with pma-voice
      • Compatibility with mumble-voip
      • Compatibility with saltychat
      • ❓FAQ
        • I can't hear my voice through the megaphone
      • Test it now
    • 🚁Advanced Helicopter Bucket
      • General Configuration
      • Adapt our script with ToxicFire
      • General Exports
      • 🔐Test it now
    • 🔗Advanced Remote Restraint
      • General Configuration
      • General Exports
      • Test it now
    • 🚗Advanced Extrication System
      • General Configuration
      • General Exports
      • Adapt a vehicle to the roof system
      • List of vehicles compatible with the roof system
      • 🔐Test it now
    • 🔗Advanced Handcuffs System
      • General Configuration
      • General Exports
      • Make ESX compatible
      • Make QBCore compatible
      • Make OX-Inventory compatible
      • 🔐Test it now
    • ✈️Advanced Aerial Firefighting
      • General Configuration
      • Adapt our script with ToxicFire
      • General Exports
      • 🔐Test it now
    • 💣Advanced Tactical Gas System
      • General Configuration
      • Test it now
  • RedM Scripts
    • 🤠Advanced Sheriff Grab Ped
      • General Configuration
      • General Exports
  • Framework compatibility
    • Add a custom weapon on ESX
    • Add a custom weapon on QBCore
    • Add a custom weapon on OX Inventory
  • 🚀Test our resources for free with Zap-Hosting
Powered by GitBook
On this page
  • 1. General Configuration
  • 2. Framework Compatibility
  • 3. Grenade Types Configuration
  • 4. Gas Mask Protection
  • 5. UI Design
  • 6. Key Bindings
  • 7. Language Library
  1. FiveM Scripts
  2. Advanced Tactical Gas System

General Configuration

PreviousAdvanced Tactical Gas SystemNextTest it now

Last updated 6 days ago

This guide helps you configure your script step by step using the config.lua file. Each section below details the available options to tailor the behavior of gas grenades, effects, and compatibility.


1. General Configuration

Language

Set the language used by the script.

Config.Language = 'en' -- Available options: 'en' (English), 'fr' (French)

Use Outdated Version

Enable this option to suppress alert messages when using an older version of the script.

Config.UseOutdatedVersion = false -- Set to true if using an outdated script version.

2. Framework Compatibility

If you're using a framework like ESX, QB, or OX Inventory, enable this setting.

Config.UseFramework = false
  • When true, the system uses the inventory (e.g., weapon usage) instead of command-based interactions.

  • Setup instructions for each framework are available on:


3. Grenade Types Configuration

Each grenade has its own behavior and configuration.

3.1 Tear Gas Grenade

Config.Grenade['tearGas']
  • weaponModel: Hash name of the weapon.

  • weaponProp: Prop model shown in-game.

  • weaponDisplay: Wheel weapon name.

  • disableControl: Disables sprint, vehicle entry, fight, and jump during exposure.

  • effects:

    • timecycle: Visual effects applied.

    • shakeCamera: Screen shaking intensity and style.

  • smokeScale: Size of the smoke cloud.

  • smokeDuration: Duration in milliseconds (e.g., 50000).

  • smokeParticles: Defines the FX dictionary and particle.

  • gasMask: Masks that grant immunity (see section 4).

Compatibility

  • pepperspray: Enables sync with r_pepperspray.

Config.Grenade['tearGas'].compatibility = {
    enabled = false,
    resourceName = 'r_pepperspray',
    applyEffect = 'pepperspray' -- The pepperspray name in the config.lua file of the Advanced Pepper Spray script.
}

3.2 Stun Grenade

Config.Grenade['stun']
  • weaponModel: Hash name of the weapon.

  • weaponProp: Prop model shown in-game.

  • weaponDisplay: Wheel weapon name.

  • disableControl: Disables sprint, vehicle entry, fight, and jump during exposure.

  • flashDuration: Duration of blinding/stunning effect in milliseconds.

  • smokeScale: Size of the smoke cloud.

  • smokeDuration: Duration in milliseconds (e.g., 50000).

  • smokeParticles: Defines the FX dictionary and particle.

  • gasMask: Masks that grant immunity (see section 4).


3.3 Smoke Grenade

Config.Grenade['smoke']
  • weaponModel: Hash name of the weapon.

  • weaponProp: Prop model shown in-game.

  • weaponDisplay: Wheel weapon name.

  • smokeScale: Size of the smoke cloud.

  • smokeDuration: Duration in milliseconds (e.g., 50000).

  • smokeParticles: Defines the FX dictionary and particle.

  • gasMask: Masks that grant immunity (see section 4).


4. Gas Mask Protection

Prevents gas effects if players are wearing certain masks or accessories.

The structure is:

[PED_MODEL] = {
    [componentId] = {drawableId, drawableId}
}
  • Example: [5] = {2} → Component 5 (mask) with drawable 2.

  • Supports both male (mp_m_freemode_01) and female (mp_f_freemode_01) characters.

  • See the documentation for component IDs.


5. UI Design

Customize the visual progress bar used during recovery animations (e.g., after gas exposure).

Config.Design = {
    ProgressBar = {
        color = {52, 152, 219}, -- RGB
        text = 'RECOVERY' -- Max 8 characters
    }
}

If text is empty, the bar will expand without label.


6. Key Bindings

Keys for Interactions

Set the keys used for actions when CommandEnabled is set to false.

Config.Keys = {
    GrabAndDropKey = 289, -- Key to grab and release a person.
    GrabAndDropKeyString = '~INPUT_REPLAY_START_STOP_RECORDING_SECONDARY~', -- Key name for display.

    TaskEnterKey = 305, -- Key to put a person in the vehicle.
    TaskEnterKeyString = '~INPUT_REPLAY_STARTPOINT~' -- Key name for display.
}

7. Language Library

Edit the text displayed for different actions in multiple languages.

Refer to the for a list of control codes.

💣
ESX Guide
QBCore Guide
OX Inventory Guide
FiveM Control Reference