From de47864181ceaa0e12ff091e696939299ee2357a Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Sun, 10 Aug 2025 20:12:41 +0200 Subject: [PATCH] ed --- .../[housing]/brutal_housing/cl_utils.lua | 27 ++++++++++--------- resources/[housing]/brutal_housing/config.lua | 2 +- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/resources/[housing]/brutal_housing/cl_utils.lua b/resources/[housing]/brutal_housing/cl_utils.lua index 3164fbc9d..bb9f068ee 100644 --- a/resources/[housing]/brutal_housing/cl_utils.lua +++ b/resources/[housing]/brutal_housing/cl_utils.lua @@ -6,20 +6,21 @@ function notification(title, text, time, type) if Config.BrutalNotify then exports['brutal_notify']:SendAlert(title, text, time, type) else - -- Put here your own notify and set the Config.BrutalNotify to false - SetNotificationTextEntry("STRING") - AddTextComponentString(text) - DrawNotification(0,1) - - -- Default ESX Notify: - --TriggerEvent('esx:showNotification', text) - - Default QB Notify: - TriggerEvent('QBCore:Notify', text, 'info', 5000) - - -- OKOK Notify: + -- Using ox_lib for notifications + lib.notify({ + title = title, + description = text, + type = type, + duration = time + }) + + -- Previous notification methods (commented out for reference) + -- SetNotificationTextEntry("STRING") + -- AddTextComponentString(text) + -- DrawNotification(0,1) + -- TriggerEvent('esx:showNotification', text) + -- TriggerEvent('QBCore:Notify', text, 'info', 5000) -- exports['okokNotify']:Alert(title, text, time, type, false) - end end diff --git a/resources/[housing]/brutal_housing/config.lua b/resources/[housing]/brutal_housing/config.lua index cf3bd9128..c6cebc529 100644 --- a/resources/[housing]/brutal_housing/config.lua +++ b/resources/[housing]/brutal_housing/config.lua @@ -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!!! BrutalKeys = true, -- Buy here: https://store.brutalscripts.com 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 AdminGroups = {'superadmin', 'admin', 'mod', 'god'},