mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-14 17:23:55 +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))
|
||||
end
|
||||
|
||||
return lib.streamingRequest(RequestModel, HasModelLoaded, 'model', model, timeout)
|
||||
return lib.streamingRequest(IsModelInCdimage, HasModelLoaded, 'model', model, timeout)
|
||||
end
|
||||
|
||||
return lib.requestModel
|
||||
Reference in new issue
Block a user