Skip to content

Commit

Permalink
feat(modules/callback.lua): remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
CsokiHUN committed Feb 10, 2023
1 parent 48a5c41 commit cd563a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions [core]/es_extended/server/modules/callback.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ local RequestId = 0
---@param callback function
ESX.RegisterServerCallback = function(eventName, callback)
serverCallbacks[eventName] = callback

print(("[^2DEBUG^0] Callback registered - ^5%s^0 - resource: ^5%s^0"):format(eventName, GetInvokingResource()))
end

RegisterNetEvent('esx:triggerServerCallback', function(eventName, requestId, invoker, ...)
Expand All @@ -29,7 +27,7 @@ end)
---@param ... any
ESX.TriggerClientCallback = function(player, eventName, callback, ...)
clientRequests[RequestId] = callback

TriggerClientEvent('esx:triggerClientCallback', player, eventName, RequestId, GetInvokingResource() or "unknown", ...)

RequestId = RequestId + 1
Expand Down

0 comments on commit cd563a1

Please sign in to comment.