actionType = "custom",
actionFunction = function()
-- Add here ur custom code
end,
Custom Function Example
actionType = "custom",
actionFunction = function()
if IsPlayerFreeAiming(PlayerId()) then
local found, targetPed = GetEntityPlayerIsFreeAimingAt(PlayerId())
print(targetPed)
if found then
local dict, anim = "missminuteman_1ig_2", "handsup_base"
while not HasAnimDictLoaded(dict) do
RequestAnimDict(dict)
Citizen.Wait(10)
end
print("PLAYING")
TaskPlayAnim(targetPed, dict, anim, 8.0, -8.0, -1, 1, 0, false, false, false)
Citizen.Wait(5000)
ClearPedTasks(targetPed)
end
end
end,