hello everyone
i have problem in setPedAnimation
when hit marker i disable jump and start animation
but when i jump the animation stops and i cannot jump
this code
local Marker = createMarker ( 192.95375 , 1903.21277 , 16.6 , "cylinder" , 1.5, 255, 128, 64, 255 )
addEventHandler ( "onMarkerHit" , Marker ,
function ( element )
if ( getElementType ( element ) == "player" ) then
toggleControl ( element , "jump" , false )
setPedAnimation ( element , "attractors" , "stepsit_in",-1,false,true,false,false )
end
end
)