mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Pull #521
This commit is contained in:
@@ -93,6 +93,14 @@ function QBCore.Functions.RequestAnimDict(animDict)
|
||||
end
|
||||
end
|
||||
|
||||
function QBCore.Functions.PlayAnim(animDict, animName, upperbodyOnly, duration)
|
||||
local flags = upperbodyOnly == true and 16 or 0
|
||||
local runTime = duration ~= nil and duration or -1
|
||||
QBCore.Functions.RequestAnimDict(animDict)
|
||||
TaskPlayAnim(PlayerPedId(), animDict, animName, 8.0, 1.0, runTime, flags, 0.0, false, false, true)
|
||||
RemoveAnimDict(animDict)
|
||||
end
|
||||
|
||||
function QBCore.Functions.LoadModel(model)
|
||||
if HasModelLoaded(model) then return end
|
||||
RequestModel(model)
|
||||
|
||||
Reference in New Issue
Block a user