Add vehicle test for /car command, and use IsModelInCdimage() native

This commit is contained in:
ElPumpo
2019-12-27 14:09:07 +01:00
parent 2d80e55631
commit 756a13f3bb
2 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
function ESX.Streaming.RequestModel(modelHash, cb)
modelHash = (type(modelHash) == 'number' and modelHash or GetHashKey(modelHash))
if not HasModelLoaded(modelHash) then
if not HasModelLoaded(modelHash) and IsModelInCdimage(modelHash) then
RequestModel(modelHash)
while not HasModelLoaded(modelHash) do