Im trying to work an animation with toggleControl. But If I run animation, toggleControl is not working. If I run toggleControl, Animation is not working.
Im trying to set "0" to "-1" : player is not moving.
In "0", player is moving bot jump and other Controls not blocking.
setPedAnimation( player, "******", "*****", 0, false, true, false)
toggleControl(player, "fire", false)
toggleControl(player, "sprint", false)
toggleControl(player, "jump", false)
toggleControl(player, "next_weapon", false)
toggleControl(player, "previous_weapon", false)
toggleControl(player, "accelerate", false)
toggleControl(player, "brake_reverse", false)
toggleControl(player, "aim_weapon", false)
Thanks for help !