NullSect
Systems nominal

Docs / Chat / Configuration

ns-chat — Configuration

Everything is in config.lua. Texts are in shared/locale.lua (en, tr). Framework code is in bridge/framework.lua.

General

OptionDefaultDescription
Framework'auto''auto', 'qbx', 'qb', 'esx', 'standalone'
Locale'tr''tr' or 'en'
OpenKey{ 'RETURN', 'T' }One key ('RETURN') or several. Players can rebind them.
MaxHistory100Messages kept in the client history
HideInPauseMenutrueHide chat and overhead texts in the pause menu

Distances and durations

OptionDefaultDescription
MeDistance / DoDistance / StatusDistance / LocalOOCDistance15.0Metres, checked on the server
MeDuration / DoDuration5000ms on screen (chat line and text above the head)
StatusDuration5000ms the [STATUS] chat line stays (the status itself stays on the character)
MessageDuration6000ms for ooc, b, pm, twt, ad, 911, system

Messages fade only while the chat is closed; they stay in the history until clear.

Channels and limits

OptionDefaultDescription
StatusEnabled, PMEnabled, OOCEnabled, LocalOOCEnabled, TwitterEnabled, AdvertisementEnabled, EmergencyEnabledtrueTurn a channel on / off
MaxMessageLength / MaxStatusLength250Characters (UTF-8)
Cooldownssee filems per command. do must be written ["do"].
OOCUseCharacterNametrueOOC, local OOC and PM show the character name (false = FiveM name)

Status

OptionDefaultDescription
StatusClearWords{ 'clear' }status clear removes the status
StatusOnDeath'keep''keep' or 'clear'
StatusOnDisconnect'keep''keep': restored when the same character logs in within StatusKeepTime seconds. 'clear': removed.
StatusOnRestart'keep''keep': saved on resource stop and restored within StatusRestoreWindow seconds
StatusUpdateInterval1500ms between proximity checks (only while a status exists)
StatusPanel / StatusPanelMaxfalse / 5Optional list of nearby statuses under the chat
StatusClearEvents{}Extra server events that clear a status (the bridge already handles framework logout)

911

OptionDefaultDescription
EmergencyJobs{ 'police', 'bcso', 'sasp', 'ambulance' }Job names that receive calls
EmergencyRequireDutyfalseOnly on-duty players (ESX has no duty: always on duty)
EmergencyShowLocationtrueStreet / zone shown under the call

Standalone (no framework) every player receives 911. Replace Config.CanReceiveEmergency for custom rules.

Player UI

DefaultUI is what a new player gets; each player can change it with the settings button next to the input.

FieldDefaultRange
theme'classic''classic', 'modern'
fontSize1410 – 24
width / height620 / 300300 – 1000 / 120 – 700 (px at 1080p)
x / y0.8 / 1.30 – 90 (% of the screen)
opacity350 – 90
timestamps, fade, overhead, hidden, statusPanelon / off

AllowThemeChange = false forces DefaultUI.theme for everybody.

Text above characters (Overhead)

OptionDefaultDescription
Enabled, Me, Do, StatustrueWhat is shown
Typingtrue"..." bubble above the head while the player has the chat open
TypingTimeout60000ms, safety limit for the typing bubble
ShowOwntrueYour own texts (hidden in first person)
DrawDistance15.0Metres
RequireLineOfSighttrueHide behind walls
MaxLines3me / do lines per player
TextSize / StatusTextSize20 / 15px at 1080p
MaxWidth / StatusMaxWidth340 / 300Width before wrapping
HeadOffset0.15Metres above the head

Commands from other resources

OptionDefaultDescription
AllowOtherCommandstrue/command runs other resources' commands
OtherCommandsWithoutSlashtruee dance = /e dance (only commands registered by resources)
SlashOnlyCommandssee fileAlways need / (quit, restart, stop …)
ExternalMessagestrueShow chat:addMessage messages from other resources

Security

OptionDefaultDescription
Security.FloodLimit / FloodWindow8 / 5000Max chat events per window per player
Security.LogSuspicioustrueThrottled console log for invalid / flood events

Hooks

  • Config.GetCharacterName(source) — name shown in the chat
  • Config.CanReceiveEmergency(playerId) — who receives 911

Cart

Your cart is empty.