RISK SCRIPTS
TEBEXDISCORD
  • Welcome to RISK DOCUMENTAION
  • Discord Integration
    • Discord Webhooks
    • Discord Bot Token
  • SCRIPTS
    • 🔔Notify
      • ⚙️Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🚚Cargo Job
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🖼️Loadingscreen
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • Driving-School
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🎣FREE AFK Fishing Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚘Vehicle Shop
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🐝Beekeeping Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🔎Advanced Metal Detector Script
      • 📝Editable
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️24/7 Market
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️Weapon Market
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️Black Market Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚗Simple Garage
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎲4 in Row Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎒Outfit Bag Script
      • 💡Installation
      • ⚙️Configuration
      • ⚙️Usage
      • ❔FAQ / Troubleshooting
    • 🔘Radial Menu
      • 💡Installation
      • ⚙️Commands & Event Triggers
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🗒️TicTacToe / X and O
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🏦Simple Banking System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • ⚙️Advanced Crafting System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚜Farming System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🍕Pizza Delivery Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🍾Spin the Bottle
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎇Firework Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 📦Blindfold
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
Powered by GitBook
On this page
  • Announcements
  • Help Notifications
  • Notifications
  • Progress Bars
  • Examples
  1. SCRIPTS
  2. Notify

Usage

Announcements

  • Command:

    /announcement <duration_ms> <message>

    Example: /announcement 10000 Server will restart soon!

  • Server Event:

    TriggerServerEvent('risk-notify:announcement', duration, message)
  • Client Event: Fires on all clients:

    RegisterNetEvent('risk-notify:announcement', function(name, duration, message) end)

Help Notifications

  • Exported Function:

    exports['risk-notify']:HelpNotify(key, message)

    Displays a temporary on-screen prompt with message, bound to key (e.g. "E").

Notifications

  • Exported Function:

    exports['risk-notify']:Notify({
      type     = 'success'|'error'|'info',
      title    = 'Title',
      message  = 'Your message here',
      duration = 8000,      -- milliseconds
    })

Progress Bars

  • Exported Function:

    exports['risk-notify']:startProgress(duration, label, {
      prop     = "prop_name",        -- optional prop to attach
      freeze   = true|false,         -- freeze player during progress
      anim     = { dict="animDict", lib="animClip" },  -- optional animation
      onFinish = function() end,     -- callback on completion
      onCancel = function() end,     -- callback on cancellation (ESC/X)
    })
  • Cancel Controls: Press Backspace or X to cancel.

Export
Arguments
Description

HelpNotify(key, msg)

(string key, string message)

Show temporary help prompt.

Notify(data)

(table {type, title, message, duration})

Show custom notification.

startProgress(...)

See Progress Bars section above.

Display a progress bar with callbacks.

SendAnnouncement(dur,msg,name)

(number,dur,string msg,string name)

Server can invoke announcements.

Examples

-- Trigger a 5s announcement:
TriggerServerEvent('risk-notify:announcement', 5000, "Hello everyone!")

-- Show a help prompt:
exports['risk-notify']:HelpNotify("E", "Press E to interact")

-- Show a success notification:
exports['risk-notify']:Notify({
  type     = 'success',
  title    = 'Completed',
  message  = 'You did it!',
  duration = 5000
})

-- Start a 10s progress bar with animation:
exports['risk-notify']:startProgress(10000, "Collecting...", {
  prop = "prop_tool_shovel",
  freeze = true,
  anim = { dict="amb@world_human_gardener_plant@male@base", lib="base" },
  onFinish = function() print("Done!") end,
  onCancel = function() print("Cancelled!") end
})

PreviousConfigurationNextFAQ & Troubleshooting

Last updated 2 days ago

🔔
🕵️‍♂️