Orbit Studios Resourcesorbit-dynamichud-addons
Exports and Events
State bags, client events, and exports available in orbit-dynamichud-addons.
Exports and Events
The addon communicates through local player state bags and local client events. DynamicHUD reads the same state values, so custom resources can use them too.
Prop
Type
Read Current State
local seatbeltOn = LocalPlayer.state.seatbelt == true
local cruiseOn = LocalPlayer.state.cruise == true
local harnessOn = LocalPlayer.state.harness == trueState bag values are local booleans. They can be nil before the player enters a vehicle, so compare with == true when you need a strict boolean.
Listen For Toggles
AddEventHandler('seatbelt:client:ToggleSeatbelt', function()
local seatbeltOn = LocalPlayer.state.seatbelt == true
end)AddEventHandler('seatbelt:client:ToggleCruise', function()
local cruiseOn = LocalPlayer.state.cruise == true
end)Harness Compatibility
HasHarness() is kept for older integrations, but new code should read the state bag directly.
local hasHarness = exports['orbit-dynamichud-addons']:HasHarness()LocalPlayer.state.harness = true