How can I make all triggers that users use after they connect appear on the console?
screenshot example : https://prnt.sc/vearzu
Manually modifying each resource
No, whoever does this doesnāt deal with all of them individually
I recommend you try to create a mod (something basic) so that you understand how it works.
@nta I think only you know about it
The problem is that you do not know or have an interest in learning on your own. You hope they give you a magic solution that solves everything by adding 2 lines of code.
did you try using the internal event ? like TriggerEventInternal
open es_extended/server/common.lua and find esx:triggerServerCallback and change this event with
RegisterServerEvent(āesx:triggerServerCallbackā)
AddEventHandler(āesx:triggerServerCallbackā, function(name, requestId, ā¦)
local playerId = source
ESX.TriggerServerCallback(name, requestId, playerId, function(...)
TriggerClientEvent('esx:serverCallback', playerId, requestId, ...)
end, ...)
print("^2Callback: "..name.." ^1Player Id: "..playerId.."^0")
end)
this
is there a Option to log all triggered Events from the Client without modifying every resource?
Lua Executor use a Event logger
Have an Events table in config or ur server.lua
Events = {
"esx_vehicleshop:setVehicleOwned",
"esx_jobs:caution",
"esx_carthief:pay",
"more events",
}
And do something like this
for k, v in ipairs(Config.Events) do
RegisterServerEvent(v)
AddEventHandler(v, function()
local src = source;
print("Event: "..v.. "Was triggered by"..src)
return
end)
end