PedClient

setPedCombatRange

SET_PED_COMBAT_RANGE0x3C606747B23E497B

The GTA V native SET_PED_COMBAT_RANGE of the PED namespace, as LS:MP client scripts call it: the global function setPedCombatRange, in JavaScript and in Lua.

SignatureJavaScript
setPedCombatRange(ped: Ped, combatRange: number): void
SignatureLua
setPedCombatRange(ped: Ped, combatRange: integer)

Usage

JavaScript
setPedCombatRange(ped, combatRange);
Lua
setPedCombatRange(ped, combatRange)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
combatRangeintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_COMBAT_RANGE(Ped ped, int combatRange)
Hash
0x3C606747B23E497B

Open in the interactive natives reference