mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46: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))
|
||||
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