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)