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
|
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
|
local src = source
|
||||||
if model ~= nil and skin ~= nil then
|
if model ~= nil and skin ~= nil then
|
||||||
TriggerClientEvent('community_bridge:client:updateStoredClothing', src, skin)
|
TriggerClientEvent('community_bridge:client:updateStoredClothing', src, skin)
|
||||||
|
|||||||
@@ -68,3 +68,11 @@ end
|
|||||||
RegisterNetEvent('community_bridge:Client:Notify', function(message, _type, time)
|
RegisterNetEvent('community_bridge:Client:Notify', function(message, _type, time)
|
||||||
Notify.SendNotify(message, _type, time)
|
Notify.SendNotify(message, _type, time)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
RegisterNetEvent('community_bridge:Client:ShowHelpText', function(message, position)
|
||||||
|
Notify.ShowHelpText(message, position)
|
||||||
|
end)
|
||||||
|
|
||||||
|
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
||||||
|
Notify.HideHelpText()
|
||||||
|
end)
|
||||||
@@ -3,3 +3,11 @@ Notify = Notify or {}
|
|||||||
Notify.SendNotify = function(src, message, _type, time)
|
Notify.SendNotify = function(src, message, _type, time)
|
||||||
TriggerClientEvent('community_bridge:Client:Notify', src, message, _type, time)
|
TriggerClientEvent('community_bridge:Client:Notify', src, message, _type, time)
|
||||||
end
|
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)
|
local playersByJob = Framework.GetPlayersByJob(data.job)
|
||||||
for _, src in pairs(playersByJob) do
|
for _, src in pairs(playersByJob) do
|
||||||
TriggerClientEvent("community_bridge:client:alert", src, data)
|
TriggerClientEvent("community_bridge:client:alert", src, data)
|
||||||
|
|||||||
Reference in new issue
Block a user