Product Image
Jump to content
👑
Loja VIP

Find Mods & Resources Fivem

Select a category for targeted search
Scripts Carros Roupas MLOs/Maps HUD Inventário Painel ADM Scripts FIVEMDEV +
  • Welcome to FiveMDEV! A maior comunidade FIVEM do Brasil!

    Welcome to FiveMDEV! A maior comunidade FIVEM do Brasil!, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of FiveMDEV! A maior comunidade FIVEM do Brasil! by signing in or creating an account.

    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Welcome and enjoy the community! 😊

     
     
    0:00

DILLEN NOTIFICAÇÃO SISTEMA PARA GTA RP FIVEM 1.0.0

   (0 reviews)

1 Screenshot

About This File

Notificação/Alerta para GTA RP FIVEM bem clean e particularmente achei bem bonito.

Tem opção de ativar ou desativar o som via arquivo config, por padrão ele vem pra vRPex mas o autor passou dois códigos para ativar em QBCORE e ESX conforme abaixo:

 

ESX compatibility

Acesse: es_extended/client/functions.lua

Procure por ESX.ShowNotification e substitua a função pelo seguinte código:

function ESX.ShowNotification(message, type, data)
    if GetResourceState("dillen-notifications") ~= "missing" then
        local _data = data or {}

        return exports['dillen-notifications']:sendNotification({
            message = message,
            type = type or 'info',
            title = _data.title or 'Notification',
            duration = _data.duration or 4000
        })
    end
end

_

QB-Core compatibility

Acesse: qb-core/client/functions.lua

Procure por QBCore-Functions.Notify e substitua a função pelo seguinte código:

function QBCore.Functions.Notify(message, type, data)
    if GetResourceState("dillen-notifications") ~= "missing" then
        local _data = data or {}

        return exports['dillen-notifications']:sendNotification({
            message = message,
            type = type or 'info',
            title = _data.title or 'Notification',
            duration = _data.duration or 4000
        })
    end
end

 

Meu teste foi realizado em vRPex e funcionou normalmente sem dificuldades, os demais frameworks necessitam de testes.


User Feedback

You may only provide a review once you have downloaded the file.

There are no reviews to display.

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...

Important Information

Esse website utiliza Cookies, se continuar navegando você concordar na usabilidade.

 

595067.png

Adblock Detected

To access our website, you need to disable Adblock and avoid using Incognito mode.

Disable Adblock