add RequestModel

This commit is contained in:
darknight2590
2021-12-25 12:34:55 +02:00
committed by GitHub
parent 02a46247cb
commit 1820344c00
+7
View File
@@ -121,6 +121,13 @@ function QBCore.Functions.RequestAnimDict(animDict)
end
end
function QBCore.Functions.loadModel(ModelName)
RequestModel(ModelName)
while not HasModelLoaded(ModelName) do
Wait(100)
end
end
RegisterNUICallback('getNotifyConfig', function(_, cb)
cb(QBCore.Config.Notify)
end)