From 1565187860082a957943b1bd0d8a806ffcb6d714 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Fri, 3 Feb 2023 13:04:48 +1100 Subject: [PATCH] refactor(init): change notify netevent name Other name was too generic and may conflict with user-code. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 2d0e18a..7600763 100644 --- a/init.lua +++ b/init.lua @@ -157,7 +157,7 @@ if context == 'client' then end, }) - RegisterNetEvent(('%s:notify'):format(cache.resource), function(data) + RegisterNetEvent(('__ox_notify_%s'):format(cache.resource), function(data) if locale then if data.title then data.title = locale(data.title) or data.title @@ -174,7 +174,7 @@ if context == 'client' then cache.playerId = PlayerId() cache.serverId = GetPlayerServerId(cache.playerId) else - local notify = ('%s:notify'):format(cache.resource) + local notify = ('__ox_notify_%s'):format(cache.resource) function lib.notify(source, data) TriggerClientEvent(notify, source, data)