mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-26 12:54:45 +00:00
fix(client/requestModel): use IsModelInnCdimage to validate model
Resolves #596. If it breaks something, maybe try using both.
This commit is contained in:
1 parent
45b9560a44
commit
d51a1167fd
1 file changed
+1
-1
@@ -10,7 +10,7 @@ function lib.requestModel(model, timeout)
|
|||||||
error(("attempted to load invalid model '%s'"):format(model))
|
error(("attempted to load invalid model '%s'"):format(model))
|
||||||
end
|
end
|
||||||
|
|
||||||
return lib.streamingRequest(RequestModel, HasModelLoaded, 'model', model, timeout)
|
return lib.streamingRequest(IsModelInCdimage, HasModelLoaded, 'model', model, timeout)
|
||||||
end
|
end
|
||||||
|
|
||||||
return lib.requestModel
|
return lib.requestModel
|
||||||
Reference in new issue
Block a user