mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(imports/streaming): use coroutine.isyieldable
This commit is contained in:
@@ -13,7 +13,7 @@ function lib.requestModel(model, timeout)
|
||||
|
||||
RequestModel(model)
|
||||
|
||||
if coroutine.running() then
|
||||
if coroutine.isyieldable() then
|
||||
timeout = tonumber(timeout) or 500
|
||||
|
||||
for _ = 1, timeout do
|
||||
|
||||
Reference in New Issue
Block a user