mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(client/requestModel): use IsModelInnCdimage to validate model
Resolves #596. If it breaks something, maybe try using both.
This commit is contained in:
@@ -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