M MY Multiplayer: Wiki
Side
Kind

setPedStrafePower

Client

Sets how a ped speeds up when strafing while fighting or aiming a gun.

bool setPedStrafePower(ped ped, float power)

Parameters

NameTypeDescription
pedpedThe ped or player.
powerfloatFrom 0 to 1. With 0 the movement speeds up as a whole; with 1 each axis speeds up on its own, as in SA. Values in between mix the two. The default is 0.

Returns

true if it was set, false if the ped does not exist in the game.

Example

setPedStrafePower(localPlayer, 1)

See also