okokDocs
  • About Us
  • Scripts
    • okokVehicleControl
      • Config file
    • okokMechanicJob
      • Config file
    • okokPoliceJob
      • Config file
      • qb-inventory support
    • okokBossMenu
      • Config file
    • okokMulticharacter
      • Config file
    • okokPhone
    • okokSpawnSelector
      • Config file
      • qb-multicharacter support
    • okokLoadingScreen
      • Config file
    • okokVehicleSales
      • Config file
    • okokShop
      • Config file
    • okokGasStation
      • Config file
    • okokTuning
      • Config file
    • okokGarage
      • Config file
      • RGB vehicle colors
      • Inventories metadata
      • Housing integrations
      • qb-phone support
    • okokVehicleShop
      • Config file
      • Common errors
    • okokBanking
      • Config file
      • Paycheck transactions
      • Registering transactions
    • okokMarketplace
      • Config file
      • Common errors
    • okokChat
      • Config file
      • Export
    • okokBilling
      • Config file
      • Snippets
    • okokCrafting
      • Config file
    • okokContract
      • Config file
    • okokTalkToNPC
      • Config file
    • okokReports
      • Config file
    • okokNotify
      • Config file
      • Snippets
    • okokTextUI
      • Config file
      • Snippets
    • okokRequests
    • okokDeleteVehicles
      • Config file
  • Others
    • Discord Webhook
Powered by GitBook
On this page
  • Installation Guide
  • Displaying a notification
  • Adding new colors/notification types
  • Server artifacts
  1. Scripts

okokNotify

PreviousConfig fileNextConfig file

Last updated 1 year ago

Installation Guide

Displaying a notification

Client side

exports['okokNotify']:Alert('Title', 'Message', Time, 'type', playSound)

Server side

TriggerClientEvent('okokNotify:Alert', source, 'Title', 'Message', Time, 'type', playSound)

Time:

  • 1000 = 1 second.

Types:

  • success (green);

  • info (blue);

  • warning (yellow);

  • error (red);

  • phonemessage (orange);

  • neutral (grey).

playSound - true/false.

Adding new colors/notification types

Navigate to the config.lua file and just replicate the existing examples.

Server artifacts

Make sure your server artifacts version is above the 5181.

Windows:

Linux:

YouTube Video
https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/
https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/