i made one code to run like the other peds, just press the punch button while is moving(and ped is not valid). But you can change the way you want.
here it is:
elseif IsButtonBeingPressed(6, 0) and IsMoving() and not IsRunning and not (PedIsValid(PedGetGrappleTargetPed(gPlayer)) or PedIsValid(PedGetTargetPed())) then
ExecuteActionNode(gPlayer, "/Global/STYLE HERE/Default_KEY/ExecuteNodes/Free/RunBasic", "Act/Anim/STYLE HERE.act")
IsRunning = true
elseif PedIsPlaying(gPlayer, "/Global/STYLE HERE/Default_KEY/ExecuteNodes/Free/RunBasic", "Act/Anim/STYLE HERE.act") and IsRunning and not IsMoving() then
PedSetActionTree(gPlayer,"/Global/STYLE HERE", "Act/Anim/STYLE HERE.act")
IsRunning = false
elseif IsMoving() and not PedIsPlaying(gPlayer, "/Global/STYLE HERE/Default_KEY/ExecuteNodes/Free/RunBasic", "Act/Anim/STYLE HERE.act") then
IsRunning = false
Don't forget to change the "STYLE HERE" for the style you're using