Hi all,
I have try this code :
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustPressed(1, 29) and IsPedInAnyVehicle(GetPlayerPed(-1), true) == false then --Start holding B
Citizen.CreateThread(function()
RequestAnimDict('gestures@m@standing@casual')
while not HasAnimDictLoaded('gestures@m@standing@casual') do
Citizen.Wait(0)
end
local myPed = PlayerPedId()
local animation = 'gesture_point'
local flags = 16
TaskPlayAnim(myPed, 'gestures@m@standing@casual', animation, 8.0, -8, -1, flags, 0, 0, 0, 0)
end)
end
end
end)
but doesn’t work any idea why ?
No error.