M MY Multiplayer: Wiki
Side
Kind

setPedMeleeStrength

Client

Sets how hard a ped hits in melee.

bool setPedMeleeStrength(ped ped, float strength)

Parameters

NameTypeDescription
pedpedThe ped or player.
strengthfloatMultiplier of the hits' damage and of the push that knocks the target down. The default is 1.

Returns

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

In the original SA this value came from a player stat; here every ped has its own.

Example

setPedMeleeStrength(localPlayer, 2)

See also