mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
fix(resource/streaming): print default when limit is nil
This commit is contained in:
@@ -4,7 +4,7 @@ local function hasLoaded(fn, type, request, limit)
|
|||||||
Wait(0)
|
Wait(0)
|
||||||
timeout -= 1
|
timeout -= 1
|
||||||
if timeout < 1 then
|
if timeout < 1 then
|
||||||
return print(('Unable to load %s after %s ticks (%s)'):format(type, limit, request))
|
return print(('Unable to load %s after %s ticks (%s)'):format(type, limit or 100, request))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return request
|
return request
|
||||||
|
|||||||
Reference in New Issue
Block a user