Hey Guys, 
So i'm working on a downloader and i'm triggering from server to client but it always says that the event hasn't been added clientside. 
My Code: 
Client 
addEvent("sendModData", true) 
addEventHandler("sendModData", getRootElement(), 
    function(TXDs, DFFs) 
        outputChatBox("lol") 
        TXDfiles = TXDs 
        DFFfiles = DFFs 
        checkMods() 
    end 
) 
  
 
Server 
for _, player in ipairs(getElementsByType("player")) do 
outputChatBox(#TXDs) 
outputChatBox(#DFFs) 
triggerClientEvent(player, "sendModData", player, TXDs, DFFs) 
end 
end 
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), loadModFiles) 
 
Meta.xml