fix deprecated event method
This commit is contained in:
1 parent
6e84b3f9ca
commit
00f69aa315
4 files changed
+18
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
if GetResourceState('qb-clothing') ~= 'started' then return end
|
||||
|
||||
RegisterServerEvent('qb-clothing:saveSkin', function(model, skin)
|
||||
RegisterNetEvent('qb-clothing:saveSkin', function(model, skin)
|
||||
local src = source
|
||||
if model ~= nil and skin ~= nil then
|
||||
TriggerClientEvent('community_bridge:client:updateStoredClothing', src, skin)
|
||||
|
||||
@@ -67,4 +67,12 @@ end
|
||||
|
||||
RegisterNetEvent('community_bridge:Client:Notify', function(message, _type, time)
|
||||
Notify.SendNotify(message, _type, time)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('community_bridge:Client:ShowHelpText', function(message, position)
|
||||
Notify.ShowHelpText(message, position)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
||||
Notify.HideHelpText()
|
||||
end)
|
||||
@@ -2,4 +2,12 @@ Notify = Notify or {}
|
||||
|
||||
Notify.SendNotify = function(src, message, _type, time)
|
||||
TriggerClientEvent('community_bridge:Client:Notify', src, message, _type, time)
|
||||
end
|
||||
|
||||
Notify.ShowHelpText = function(src, message, position)
|
||||
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
|
||||
end
|
||||
|
||||
Notify.HideHelpText = function(src)
|
||||
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
RegisterServerEvent("community_bridge:server:alert", function(data)
|
||||
RegisterNetEvent("community_bridge:server:alert", function(data)
|
||||
local playersByJob = Framework.GetPlayersByJob(data.job)
|
||||
for _, src in pairs(playersByJob) do
|
||||
TriggerClientEvent("community_bridge:client:alert", src, data)
|
||||
|
||||
Reference in new issue
Block a user