For the complete documentation index, see llms.txt. This page is also available as Markdown.

General Configuration

This guide will help you customize the SCBA system to fit your server's needs, by explaining all available options in the config.lua file.


1. General Configuration

Language

Set the language used by the script for in-game texts.

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

2. Framework Compatibility

Automatic mode allows for the automatic detection of the framework you are using on your server.

Don't forget to create your SCBA item by following the pages below: OX_Inventory, ESX, QB

Config.Inventory = 'auto' -- auto, qb, esx, ox (you can modify this function on server/inventory.lua)

3. Command Usage

Enable or disable the /scba command as an alternative to EUP access.

Config.CommandEnabled = false
Config.Command = 'scba' -- Customizable command name

4. EUP Configuration

Defines the SCBA outfits for different scenarios, allowing customization of player appearance when wearing or not wearing the SCBA.​

  • Untie: Defines the outfit components when the SCBA is untie.​

  • Link: Defines the outfit components when the SCBA is link.​

Each entry specifies the drawable and texture IDs for the undershirt component (index 8) for male (mp_m_freemode_01) and female (mp_f_freemode_01) character models.​

0: Face\ 1: Mask\ 2: Hair\ 3: Torso\ 4: Leg\ 5: Parachute / bag\ 6: Shoes\ 7: Accessory\ 8: Undershirt\ 9: Kevlar\ 10: Badge\ 11: Torso 2

To add more EUP configurations, create additional entries in the Config.EUP table with different indices ([2], [3], etc.) and define their respective Untie and Link settings (Don't forget to declare the id you defined in category 5. SCBA Retrieval)


5. SCBA Retrieval

From Vehicles

Allow SCBA to be retrieved from specific vehicle models.

(Number 1 corresponds to the eup number defined above in Config.EUP)

From World Points

If commands are disabled, define world points for retrieving SCBA.

(Number 1 corresponds to the eup number defined above in Config.EUP)


6. Mask Control

Disable key to manually attach/detach mask (useful when using custom exports).


7. Recharge System

Recharge SCBA from vehicles or locations.

(Number 1 corresponds to the eup number defined above in Config.EUP)


8. Pressure System

Define initial SCBA pressure and how fast it depletes based on player activity.

Pressure alert sound thresholds:


9. Visual & Audio Effects

Enable visual screen filter and voice muffling with PMA-Voice.


10. Cough Block Zones

Cough Block Zones allow you to define specific areas where players will not cough even if near fire without wearing an SCBA. (Used mainly to block campfires)

Enable Cough Block Zones

Activate or deactivate the system that blocks coughing in certain predefined zones.

Define Block Zones

List the coordinates and radius of each area where coughing should be disabled.

You can add as many locations as needed by following the structure shown above.

Define Block Props

Blocks coughing when a player approaches a prop from the list in the setup


11. Fire Damage System

Control how players are affected by fire when not wearing SCBA.


12. HUD Display

Customize the SCBA display HUD.


13. Key Bindings

Define keys for SCBA interactions.

Refer to the FiveM Control Reference for a list of control codes.


14. Language Library

Edit the text displayed for different actions in multiple languages.

Last updated