NRG Scripts
  • NRGScripts Documentation
  • About FiveM Escrow
  • NRG RESOURCES
    • NRG SimCard
      • Installation
      • Exports
      • Config
  • NRG AlcoEffect
    • Installation
    • Database
    • Expotrs
  • NRG Hud
    • Installation
    • Expotrs
Powered by GitBook
On this page
  • Client Exports
  • ➤ getSeatbeltStatus
  • ➤ addNotification
  1. NRG Hud

Expotrs

Client Exports

➤ getSeatbeltStatus

Returns the player is wearing a seat belt

Usage Example:

local SeatBelt = exports["nrg_hud"]:getSeatbeltStatus()

SeatBelt = 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,

PreviousInstallation

Last updated 1 day ago