it work sucks in factPlayerSetControl(0)
PlayerLockButtonInputsExcept(true)
PedSetActionTree(gplayer,"/global/p_striker_a","act/p_striker_a.act")
PedSetTaskNode(gplayer,"evadeback","AI.act")
Wait(0)
PedSetAITree(gplayer, "/Global/PlayerAI", "Act/PlayerAI.act")
PlayerSetControl(1)
local lastWeapon = PedGetWeapon(gplayer)
while PedMePlaying(gplayer,"evadeback",true) do
PedSetWeapon(gplayer,lastWeapon)
Wait(0)
end
PedSetActionTree(gplayer, "/global/player","act/player.act")
Wait(0)
PlayerLockButtonInputsExcept(false)