Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ///////////////////////////////
- -- ///// RequestDownload //////
- -- ///// Returns: void //////
- -- ///////////////////////////////
- function DownloadManager:RequestDownload(player, tblDownload)
- local bytes = 0;
- for index, path in pairs(tblDownload) do
- bytes = bytes+string.len((self.dataTable[path] or "false"))
- end
- triggerClientEvent(player, "onDownloadManagerGetTotalBytes", player, bytes);
- for index, path in pairs(tblDownload) do
- triggerLatentClientEvent(player, "onDownloadManagerStartDownload", self.bytesPerSecond, false, player, path, (self.dataTable[path] or "false"))
- end
- triggerClientEvent(player, "onDownloadManagerFinnishDownload", player);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement