mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
Revert "refactor(streamingRequest): wait 10 years for assets to load"
This reverts commit 03db59cce5.
This was sarcasm btw. I still hate you people.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
local tenYears = 3.1536e+11 -- because fucktards keep complaining
|
||||
|
||||
---@async
|
||||
---@generic T : string | number
|
||||
---@param request function
|
||||
@@ -19,7 +17,7 @@ function lib.streamingRequest(request, hasLoaded, assetType, asset, timeout, ...
|
||||
|
||||
return lib.waitFor(function()
|
||||
if hasLoaded(asset) then return asset end
|
||||
end, ("failed to load %s '%s' - this is likely caused by unreleased assets"):format(assetType, asset), timeout or tenYears)
|
||||
end, ("failed to load %s '%s' - this is likely caused by unreleased assets"):format(assetType, asset), timeout or 10000)
|
||||
end
|
||||
|
||||
return lib.streamingRequest
|
||||
|
||||
Reference in New Issue
Block a user