Alright, so i made an 'arrest' script, which basically stops an NPC and applys the animation 'handsup' on it.
Tho it doesn't work / work on slothbots neither NPC-HLC bots.
heres the code:
for i,v in ipairs(getElementsByType("player")) do
bindKey(v, "e", "down", "arrest")
end
function onPlayerTarget ( playerSource, keyPresser, key, keyStatetargetElem, targetElem )
setPedAnimation( targetElem, "ped", "handsup")
end
addCommandHandler("arrest", onPlayerTarget)
Can anyone help me out?