Skip to content

skeexs/skeexsNotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skeexs Notify

FiveM notification script for roleplay servers
Skeexs Inc. Discord Server

Documentation for you server owners

  1. Download the resource and start it in your server.cfg
  2. ensure skeexsNotify
  3. If youre using ESX Legacy, Goto `es_extended/client/functions.lua` and replace `ESX.ShowNotification` with the following code:
        ESX.ShowNotification = function(message, type, options)
            if GetResourceState("skeexsNotify") ~= "started" then
                print("skeexsNotify is not started")
                return
            end
    
            exports.skeexsNotify:sendNotification({
                type = type or "info",
                message = message or "No message",
                title = options.type or "Notification",
                timeout = options.timeout or 5000
            })
        end
Types of notifications
  • success
  • info
  • error
  • message
  • phone
  • bag

To add an notification-type

Go to `app.js` and add a new type like this in the `$TYPES` Object:

    ["iconname"]: {
        ["icon"]: "bi bi-telephone-inbound",
        prefix: "~g~", // GTA color codes, doesn't need to be set. Just adds color to the message
    },

Icons

ALL THE ICONS NEED TO BE FROM BOOTSTRAP
Bootstrap Icons

Events

There are 2 events you can use to send notifications to the client

    TriggerClientEvent("skeexsNotify:sendNotification", source, {
        type = "info",
        message = "This is a notification",
        title = "Notification",
        timeout = 5000
    })
    exports.skeexsNotify:sendNotification({
        type = "info",
        message = "This is a notification",
        title = "Notification",
        timeout = 5000
    })

About

FiveM notification script for roleplay servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors