RP Works Modding Docs
DocsStore
  • โฑ๏ธGetting Started
  • โ“Frequently Asked Questions
  • ๐ŸŒFiveM Resources
  • ๐ŸšจFiveM Lighting System [FLS]
  • ๐Ÿ“FLS Pattern Designer
  • โ˜๏ธDynamic Weather System
  • ๐Ÿ“นFree Camera Mode
  • ๐ŸฅŽHold and Throw
  • ๐ŸงจFlashbang
  • ๐Ÿš’BA Board
  • ๐Ÿ”ZoneCues [COMING SOON]
  • ๐Ÿง SceneAI [Coming Soon]
  • ๐Ÿ”‘Trakka Key Management [Coming Soon]
Powered by GitBook
On this page
  • ๐Ÿš€ Features
  • ๐Ÿ“ฆ Dependencies
  • ๐Ÿงฑ Installation
  • ๐Ÿงฉ Commands
  • ๐ŸŽฏ Interactions
  • ๐Ÿ“ค Exports
  • โš™๏ธ Configuration
  • ๐Ÿ’ฌ Credits

BA Board

A standalone and highly realistic Breathing Apparatus (BA) Entry Control Board system for UK-style fire services in FiveM.

PreviousFlashbangNextZoneCues [COMING SOON]

Last updated 9 days ago

๐Ÿš€ Features

  • ๐Ÿ“‹ Fully functional BA Entry Control Board UI with drag-and-drop freetype areas

  • ๐Ÿง‘โ€๐Ÿš’ Insert/remove tags per player with synced real-time status

  • โฑ๏ธ Dynamic Time To Whistle (TTW) and Time Of Whistle (TOW) calculation

  • ๐Ÿ” Realtime ADSU/DSU alarm monitoring and flashing

  • ๐Ÿ”Š Built-in audio alarms (evacuation tones, beeps)

  • ๐Ÿšจ EVAC system with acknowledge prompt

  • ๐Ÿงญ Supports multiple BA boards at once, each fully independent

  • โœ… Works with r_scba (optional) and ox_target

  • ๐Ÿ”Œ Fully exportable for use with other scripts


๐Ÿ“ฆ Dependencies

This script requires:

We also recommend:

  • BA Board 3D Model - Available on our store


๐Ÿงฑ Installation

Ensure that the dependancies are started BEFORE this resource in server.cfg


๐Ÿงฉ Commands

Command
Description

/dsu

Triggers DSU alarm

/withdraw

Triggers withdrawal alert

๐Ÿ›‘ All commands only work while wearing an SCBA (If integration enabled).


๐ŸŽฏ Interactions

The system uses ox_target to handle interactions with placed board props.

When looking at a board, options include:

  • Open BA Board โ€“ View the UI

  • Insert Tag โ€“ Insert your identity into the board

  • Remove Tag โ€“ Only available on the board you've tagged into


๐Ÿ“ค Exports

Client Exports

exports["DH_BABoard"]:IsTagInserted() -- Get whether client's tag is inserted (BOOL)
exports["DH_BABoard"]:GetCurrentBoardId() -- Get current netID of board open (int)
exports["DH_BABoard"]:GetTagBoardId() -- Get netID of board client has tag in (int)
exports["DH_BABoard"]:GetTTW() -- Get current client's time to whistle
exports["DH_BABoard"]:GetTOW() -- Get current client's time of whistle

Server Exports

exports["DH_BABoard"]:GetWearersForBoard(boardId) -- Get all wearers with tags in the board
exports["DH_BABoard"]:IsPlayerOnBoard(playerId)-- Does the player have their tag in? (Bool)
exports["DH_BABoard"]:GetBoardFromPlayer(playerId) -- Get the board netID the player has tag in

โš™๏ธ Configuration

-- ๐Ÿ”ง Prop model used for the BA board
Config.BAPropModel = "prop_ba"  -- Change this if your server uses a custom model

-- ๐Ÿš€ Enable or disable the spawn ba command 
--     (ANY prop matching the above prop will work, it doesn't need to be spawned 
--     by this script - Disable if using boot script or other spawning method)
Config.EnableSpawnCommand = true

-- Automatically detects if r_scba is active. Set to false to manually disable 
-- integration.
Config.UseSCBA = GetResourceState("r_scba") == "started"

-- ๐Ÿ“ก Update frequency (in ms) for sending pressure/TTW updates
Config.UpdateInterval = 1000

-- โฑ๏ธ Time (in seconds) a player must be stationary before ADSU alert triggers
Config.ADSU_TriggerTime = 28

-- ๐Ÿ“ข Minimum pressure before whistle alarm (in bar)
Config.WhistlePressure = 50

-- ๐Ÿงช TTW Scaling Values
Config.StandardWorkingDuration = 30 -- minutes @ 300 bar
Config.HardWorkingDuration = 15     -- minutes @ 300 bar

๐Ÿ’ฌ Credits

  • Developed by: RP Works Modding

Follow instructions in

Targeting System:

ox_target
r_scba
Getting Started
ox_target
๐Ÿš’
Page cover image