PedClient

getPedCombatRange

GET_PED_COMBAT_RANGE0xF9D9F7F2DB8E2FA0

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

SignatureJavaScript
getPedCombatRange(ped: Ped): number
SignatureLua
getPedCombatRange(ped: Ped): integer

Usage

JavaScript
const result = getPedCombatRange(ped);
Lua
local result = getPedCombatRange(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
Ped PED
In the game
int GET_PED_COMBAT_RANGE(Ped ped)
Hash
0xF9D9F7F2DB8E2FA0

Open in the interactive natives reference