mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Merge pull request #624 from HAMz-Project/patch-1
Add utility LoadAnimSet
This commit is contained in:
@@ -109,6 +109,14 @@ function QBCore.Functions.LoadModel(model)
|
||||
end
|
||||
end
|
||||
|
||||
function QBCore.Functions.LoadAnimSet(animSet)
|
||||
if HasAnimSetLoaded(animSet) then return end
|
||||
RequestAnimSet(animSet)
|
||||
while not HasAnimSetLoaded(animSet) do
|
||||
Wait(0)
|
||||
end
|
||||
end
|
||||
|
||||
RegisterNUICallback('getNotifyConfig', function(_, cb)
|
||||
cb(QBCore.Config.Notify)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user