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

Client Side

Client side list of exports / events.


Notify

Show a HUD toast.

exports['op-hud']:Notify('Settings saved', 'success', 4000)
exports['op-hud']:Notify('Body text', 'error', 5, 'Failed')

exports['op-hud']:Notify({
    title = 'Dispatch',
    description = 'New call available',
    type = 'info',
    duration = 4,
})
  • message / table: string or { title?, description?, message?, type?, duration? }

  • type: success | info | warning | error (aliases normalised)

  • duration: seconds if <= 60, otherwise ms

  • returns: nothing

Event:

TriggerEvent('oph:client:notify', 'Hello', 'info', 4000)
-- or from server:
TriggerClientEvent('oph:client:notify', source, payload)

Progress / ProgressCancel / IsProgressActive

Blocking progress bar.

  • returns (Progress): boolean - true completed, false cancelled / already running

Events:


GetSettings

Deep copy of the local player's HUD settings table.

  • returns: table


IsHudEnabled / SetHudEnabled

  • enabled: boolean

  • persists via player settings


OpenSettings

Opens the HUD settings menu (same as /hudsettings).


Seatbelt / Cruise / Indicators

Built-in seatbelt / cruise / indicators only apply when their integration is builtin / enabled in MainConfig.lua. If another resource owns seatbelts, set Config.Integrations.seatbelt accordingly.

Last updated