forked from Simnation/Main
ed
This commit is contained in:
parent
4ba41119ec
commit
de47864181
2 changed files with 15 additions and 14 deletions
|
@ -6,20 +6,21 @@ function notification(title, text, time, type)
|
||||||
if Config.BrutalNotify then
|
if Config.BrutalNotify then
|
||||||
exports['brutal_notify']:SendAlert(title, text, time, type)
|
exports['brutal_notify']:SendAlert(title, text, time, type)
|
||||||
else
|
else
|
||||||
-- Put here your own notify and set the Config.BrutalNotify to false
|
-- Using ox_lib for notifications
|
||||||
SetNotificationTextEntry("STRING")
|
lib.notify({
|
||||||
AddTextComponentString(text)
|
title = title,
|
||||||
DrawNotification(0,1)
|
description = text,
|
||||||
|
type = type,
|
||||||
|
duration = time
|
||||||
|
})
|
||||||
|
|
||||||
-- Default ESX Notify:
|
-- Previous notification methods (commented out for reference)
|
||||||
--TriggerEvent('esx:showNotification', text)
|
-- SetNotificationTextEntry("STRING")
|
||||||
|
-- AddTextComponentString(text)
|
||||||
Default QB Notify:
|
-- DrawNotification(0,1)
|
||||||
TriggerEvent('QBCore:Notify', text, 'info', 5000)
|
-- TriggerEvent('esx:showNotification', text)
|
||||||
|
-- TriggerEvent('QBCore:Notify', text, 'info', 5000)
|
||||||
-- OKOK Notify:
|
|
||||||
-- exports['okokNotify']:Alert(title, text, time, type, false)
|
-- exports['okokNotify']:Alert(title, text, time, type, false)
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ Config = {
|
||||||
TextUI = 'ox_lib', -- false / 'brutal_textui' / 'ox_lib' / 'okokTextUI' / 'ESXTextUI' / 'QBDrawText' // Custom can be add in the cl_utils.lua!!!
|
TextUI = 'ox_lib', -- false / 'brutal_textui' / 'ox_lib' / 'okokTextUI' / 'ESXTextUI' / 'QBDrawText' // Custom can be add in the cl_utils.lua!!!
|
||||||
BrutalKeys = true, -- Buy here: https://store.brutalscripts.com
|
BrutalKeys = true, -- Buy here: https://store.brutalscripts.com
|
||||||
BrutalPoliceJob = false, -- Buy here: https://store.brutalscripts.com | Better connection
|
BrutalPoliceJob = false, -- Buy here: https://store.brutalscripts.com | Better connection
|
||||||
BrutalNotify = true, -- Buy here: (4€+VAT) https://store.brutalscripts.com | Or set up your own notify >> cl_utils.lua
|
BrutalNotify = false, -- Buy here: (4€+VAT) https://store.brutalscripts.com | Or set up your own notify >> cl_utils.lua
|
||||||
|
|
||||||
SteamName = false, -- true = Steam name | false = character name
|
SteamName = false, -- true = Steam name | false = character name
|
||||||
AdminGroups = {'superadmin', 'admin', 'mod', 'god'},
|
AdminGroups = {'superadmin', 'admin', 'mod', 'god'},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue