Dapler Docs
StoreDiscord
  • Welcome
  • SCRIPTS
    • Bridge
      • Installation
      • File Structure
      • Usage
      • Client-side Exports
      • Server-side Exports
    • Notify
      • Installation guide
  • Speech Recognition
    • Installation
    • Requirements
    • Configuration
    • Microphone Access
    • License and Conditions
    • Support
  • Events
Powered by GitBook
On this page
  • How to trigger Dapler Notify?
  • How to change the notify in your server
  • ESX
  • QBCORE
  1. SCRIPTS
  2. Notify

Installation guide

Follow the instructions below! It will quickly describe everything to you.

For every fivem server!

How to trigger Dapler Notify?

Trigger from Server side

TriggerClientEvent('dr-notify:showNotification', source, 'type', Time, 'Title', 'Message')

Trigger from Client side

exports['dr-notify']:showNotification('type', Time, 'Title', 'Message')

Explanation

  • source - You have to add source on server side

  • Type - error / info / warning / success

  • Time - Time of visibility of the notify (1000 = 1 second)

  • Title - Enter custom text here. Notify title

  • Message - You have to add the notify message here.

How to change the notify in your server

ESX

es_extedned/client/functions.lua

Find this function:

ESX.ShowNotification

And replace it:

function ESX.ShowNotification(message, type, length)
    exports['dr-notify']:showNotification(type, length, 'Dapler Notify', message)
end

QBCORE

qb-core/client/functions.lua

Find this function:

QBCore.Functions.Notify

And replace it:

function QBCore.Functions.Notify(text, texttype, length)
    if type(text) == "table" then
        local ttext = text.text or 'Placeholder'
        local caption = text.caption or 'Placeholder'
        texttype = texttype or 'primary'
        length = length or 5000
        exports['dr-notify']:showNotification(texttype, length, caption, ttext)
    else
        texttype = texttype or 'primary'
        length = length or 5000
        exports['dr-notify']:showNotification(texttype, length, 'Dapler Notify', ttext)
    end
end

PreviousNotifyNextSpeech Recognition

Last updated 19 days ago