mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-04 17:23:31 +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
|
||||||
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)
|
RegisterNUICallback('getNotifyConfig', function(_, cb)
|
||||||
cb(QBCore.Config.Notify)
|
cb(QBCore.Config.Notify)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user