Post edited: IsPlayerFreeAimingAtEntity does’t work. I changed the syntaxe, it did nothing.
Hi.
I’m making a banker NPC and I would like he raises his hands when players aim him.
But my condition makes no effect.
if (IsPlayerFreeAimingAtEntity(0, Banker)) then
TaskHandsUp(Banker, -1, Banker, -1, true)
end
Nothing happens… TaskHandsUp(Banker, -1, Banker, -1, true) is working if I don’t make a condition (but I don’t want my NPC stay always with the hands raised x) )
Yep thank you guys, I found my error (I just make it in a clear client.lua and it’s working.
But my banker raising his hands when player is aiming without weapon.
So I tried the function IsPedWeaponReadyToShoot() but didn’t works. Is it the good function?
This function is always true, same without weapons