Title: onDownload event doesn't trigger after reconnectWhat's wrong?: The first time i connect to my server i instantiate fine, Once i reconnect it doesn't fire the onDownload. Restarting the server fixes this issue. Restarting the client does not fix it.What should normally happen?: run the onDownload eventHow to reproduce the issue: connect once, disconnect and reconnect again.Operating System: Windows 10 creators updateWrite any additional information (Use spoilers for images): Code: API.setEntityData(player, "DOWNLOAD_FINISHED", true); API.sendChatMessageToPlayer(player, "Welcome to ~b~this server... ~y~V0.1 ~w~Please wait while we load in your HUD!"); API.triggerClientEvent(player, "createCamera", _skinSelectorCamPos, _skinSelectorPos); API.consoleOutput("Test"); API.call("LoginManager", "Init", player); As you can see in this image below, and compare it to the onDownload snippet above. the consoleOutput("test") only emits once. Spoiler
It sounds potentially like when you reconnect it doesn't need to download again as your client already has the latest? I'm not sure if this is the reason, but it sounds plausible.
@BigJay I changed it to onPlayerConnect. It has the same effect. It doesn't execute after reconnecting + i can't exactly run client-side code in it as it might not be downloaded before it executes or its unreliable.
The client should download if you delete "...\GTANetwork\resources\"yourserver"" between your reconnects. Otherwise I see no reason in downloading files a second time if they do already exist.
It's actually what we are working on currently. It's seems almost gamebreaking, so I think we're trying very hard to get it fixed. If not it will be hotfixed soon after.