Yes, an example can be that some servers use anticheats that renames default event names to ““secure”” the scripts, so when triggering it to let another script handling something, it may trigger a non existing event and the script that tries to trigger the event can’t know it.
One of the most common cases can be the following one:
local sharedObjectName = "esx:getSharedObject"
if(doesEventExists(sharedObjectName)) then
TriggerEvent(sharedObjectName, function(obj)
ESX = obj
end)
else
print(sharedObjectName .. " event doesn't exists")
end
1 Like