Skip to content

bs_ui

HUD, notifications and shared NUI shell.

Generated from the Lua sources in resources/[beyond]/bs_ui/. 53 entries. The description column is the comment above the line in the code, so if it’s empty nobody wrote one yet.

Call with exports.bs_ui:Name(...) from the same side.

NameSideWhereDescription
ApplyFilterclientclient/cl_filter.lua:175
ApplyHudSettingsclientclient/cl_hud.lua:114
Closeclientclient/cl_nui.lua:101
CloseFieldMapclientclient/cl_fieldmap.lua:303
FilterPresetsclientclient/cl_filter.lua:167The list the pickers are built from - Settings, and the cinematic camera.
GetHudSettingsclientclient/cl_hud.lua:115
GetPartyHudPrefclientclient/cl_partyhud.lua:61
GetUiScaleclientclient/cl_uiscale.lua:36
IsFieldMapOpenclientclient/cl_fieldmap.lua:304
IsFocusedclientclient/cl_nui.lua:103
IsSoundLiveclientclient/cl_sound.lua:478Is anything still playing under this id?
LevelUpSequenceclientclient/cl_levelup.lua:79
MoveSoundAtclientclient/cl_sound.lua:467It walked. Cheap, and a no-op for anything not currently playing.
Notifyclientclient/cl_notify.lua:31
Openclientclient/cl_nui.lua:100
OpenFieldMapclientclient/cl_fieldmap.lua:302
PlaySound2Dclientclient/cl_sound.lua:485Non-positional: menus, notifications, hitmarkers, the level-up sting.
PlaySoundAtclientclient/cl_sound.lua:462
ResetMinimapRectclientclient/cl_hud.lua:323
RestoreFilterclientclient/cl_filter.lua:180Restore the saved gameplay look after a menu camera releases its own grade.
Sendclientclient/cl_nui.lua:102
SetBigmapclientclient/cl_hud.lua:221
SetMinimapclientclient/cl_hud.lua:324
SetMinimapRectclientclient/cl_hud.lua:322
SetPartyHudPrefclientclient/cl_partyhud.lua:62
SetUiScaleclientclient/cl_uiscale.lua:37
SkillLevelSequenceclientclient/cl_levelup.lua:80
StopSoundTagclientclient/cl_sound.lua:474Stop, with a ramp. fadeMs is optional; nil is the short default.
SuspendFilterclientclient/cl_filter.lua:211SUSPEND, FOR ANYTHING THAT OWNS THE SCREEN FOR A MOMENT.
Notifyserverserver/sv_main.lua:17
NotifyAllserverserver/sv_main.lua:18

Server callbacks are called from a client with BSB.Await(name, timeoutMs, ...). Client callbacks are called from the server with BSB.AwaitClient(src, name, timeoutMs, ...).

None.

“net” means the handler is registered with RegisterNetEvent, so the other side can trigger it. “local” is AddEventHandler only (same side, or game events).

NameSideTypeWhereDescription
bs:factions:syncclientnetclient/cl_partyhud.lua:76
bs:hook:player:levelUpclientlocalclient/cl_hud.lua:606
bs:hook:player:loadedclientlocalclient/cl_hud.lua:557
bs:hook:player:moneyclientlocalclient/cl_notify.lua:42
bs:hook:player:spawnedclientlocalclient/cl_notify.lua:65
bs:hook:player:unloadedclientlocalclient/cl_fieldmap.lua:285
bs:hook:player:xpclientlocalclient/cl_hud.lua:572The XP popup: this is the moment the player sees the reward land.
bs:squad:syncclientnetclient/cl_partyhud.lua:75
bs:ui:closedclientlocalclient/cl_hud.lua:363BUG THAT WAS HERE - “THE FIELD MAP STILL IS NOT WORKING”, FOR MONTHS.
bs:ui:levelCardclientlocalclient/cl_hud.lua:580The card is drawn here, but the SEQUENCE (card + boom + music) is owned by cl_levelup.lua, which fires this through bs:ui:levelCard.
bs:ui:openedclientlocalclient/cl_fieldmap.lua:281Panels
bs:ui:panicclientlocalclient/cl_hud.lua:436
bs:ui:settingsChangedclientlocalclient/cl_sound.lua:109Player preferences arrive after the HUD state is restored.
onClientResourceStopclientlocalclient/cl_blurguard.lua:108AND THE ONE CASE THE WATCHDOG ABOVE CANNOT CATCH: a resource that faded the blur in and then STOPPED.
onResourceStopclientlocalclient/cl_fieldmap.lua:287A restart with a grade applied leaves the grade applied: the timecycle is engine state, not resource state, and nothing clears it when the script that set it goes away.
CommandSideWhereDescription
/hudclientclient/cl_hud.lua:625
/leveltestclientclient/cl_levelup.lua:85A test that does not require earning anything.
/refreshuiclientclient/cl_nui.lua:89/refreshui - THE PANIC BUTTON, FOR EVERY PLAYER.
/soundstatclientclient/cl_sound.lua:549/soundstat - what the mixer thinks is happening right now.
/soundtestclientclient/cl_sound.lua:508/soundtest <file> [distance] - proves a file is present and audible without needing anything else in the project to be working first.
/uiscaleclientclient/cl_uiscale.lua:39
/unblurclientclient/cl_blurguard.lua:135/unblur - the manual escape hatch.