Expotrs
Client Exports
➤ getSeatbeltStatus
Returns the player is wearing a seat belt
Usage Example:
local SeatBelt = exports["nrg_hud"]:getSeatbeltStatus()
SeatBelt = False/True
➤ ToggleVisible
Set hud visable
Usage Example:
exports['nrg_hud']:ToggleVisible(status)
status = false/true
➤ addNotification
exports["nrg_hud"]:addNotification(message, time, type, position, title)
or
TriggerClientEvent('nrg_hud:addNotification', source, message, time, type, position, title)
Default:
time = 3000
type = info
position = top-right
Options to use:
type =
error,
success,
info,
warning
position =
top-left,
top-center,
top-right,
center-left,
center-right,
bottom-left,
bottom-center,
bottom-right,
Last updated