mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-25 04:18:35 +00:00
refactor(imports/streaming): use coroutine.isyieldable
This commit is contained in:
1 parent
9efcde0351
commit
a8ab102bae
7 files changed
+8
-8
No files matched your search
@@ -11,7 +11,7 @@ function lib.requestStreamedTextureDict(textureDict, timeout)
|
||||
|
||||
RequestStreamedTextureDict(textureDict, false)
|
||||
|
||||
if coroutine.running() then
|
||||
if coroutine.isyieldable() then
|
||||
timeout = tonumber(timeout) or 500
|
||||
|
||||
for _ = 1, timeout do
|
||||
|
||||
Reference in new issue
Block a user