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 msreturns: 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-truecompleted,falsecancelled / already running
Events:
GetSettings
Deep copy of the local player's HUD settings table.
returns:
table
IsHudEnabled / SetHudEnabled
enabled:booleanpersists via player settings
OpenSettings
Opens the HUD settings menu (same as /hudsettings).
Seatbelt / Cruise / Indicators
Last updated