setPedStrafePower
Client
Sets how a ped speeds up when strafing while fighting or aiming a gun.
bool setPedStrafePower(ped ped, float power)
Parameters
| Name | Type | Description |
|---|---|---|
| ped | ped | The ped or player. |
| power | float | From 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)