I went back to develop for FiveM this month and I’ve found the error, for some reason that i don’t really know it starts on the version 976 and i suspect that is related to this commit:
And what happens is:
- For some moment in the download process the native API function GetPlayerPing return a -1.
- As i’m using the vRP, the vRP has a loop that check if GetPlayerPing is 0 or below and if it’s is: kick’s the player
- Because the player it’'s kicked, the request returns a 403 error (filters says no xD,: FilesHttpHandler: 148).
- And because there’s no error treatment on download, the user get stuck on the download screen and has to quit the server.
So my “quick” solution for server developers that have the same error, comment the:
task_timeout()
On base.lua inside the vRP folder.
Also, another thing to note: after some new commits, when the request its 403, it don’t end the request and keep open.