PHP:
:RotationSpeedAngleZ
{
Status 1 = true
Status 0 = false
0AB1: @RotationSpeedAngleZ 1 Status 1
}
0A96: 1@ = ped $PLAYER_ACTOR struct
0A8E: 2@ = 1@ + 0x560 // CPed +0x560 = [float] Rotation speed (Z angle)
IF 0@ == 1
THEN 0A8C: writeMem 2@ sz 4 val 30.0 vp 1
ELSE 0A8C: writeMem 2@ sz 4 val 7.5 vp 1
END
0AB2: 0
PHP:
{$CLEO}
{$USE bitwise}
0000:
WHILE TRUE
WAIT 0
IF 0AB0: key_pressed 113 {F2}
THEN
0B12: 30@ = 30@ XOR 1
IF 0039: 30@ == TRUE
THEN 0AD1: show_formatted_text_highpriority "~w~FasterPed ~g~ON" time 1337
ELSE
0AB1: @RotationSpeedAngleZ 1 Status 0
0AD1: show_formatted_text_highpriority "~w~FasterPed ~r~OFF" time 137
END
WAIT 137
END
IF 30@ == TRUE
THEN
IF 0256: player $PLAYER_CHAR defined
THEN 0AB1: @RotationSpeedAngleZ 1 Status 1
END
END
END