mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
fix(client/streaming): timeout
This commit is contained in:
@@ -2,7 +2,11 @@ local function request(native, hasLoaded, requestType, name, timeout)
|
|||||||
native(name)
|
native(name)
|
||||||
|
|
||||||
if coroutine.running() then
|
if coroutine.running() then
|
||||||
for i = 1, timeout or 5 do
|
if not timeout then
|
||||||
|
timeout = 500
|
||||||
|
end
|
||||||
|
|
||||||
|
for i = 1, timeout do
|
||||||
Wait(0)
|
Wait(0)
|
||||||
if hasLoaded(name) then
|
if hasLoaded(name) then
|
||||||
return name
|
return name
|
||||||
|
|||||||
Reference in New Issue
Block a user