WeaponClient

getMaxRangeOfCurrentPedWeapon

GET_MAX_RANGE_OF_CURRENT_PED_WEAPON0x814C9D19DFD69679

The GTA V native GET_MAX_RANGE_OF_CURRENT_PED_WEAPON of the WEAPON namespace, as LS:MP client scripts call it: the global function getMaxRangeOfCurrentPedWeapon, in JavaScript and in Lua.

SignatureJavaScript
getMaxRangeOfCurrentPedWeapon(ped: Ped): number
SignatureLua
getMaxRangeOfCurrentPedWeapon(ped: Ped): number

Usage

JavaScript
const value = getMaxRangeOfCurrentPedWeapon(ped);
Lua
local value = getMaxRangeOfCurrentPedWeapon(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Weapon WEAPON
In the game
float GET_MAX_RANGE_OF_CURRENT_PED_WEAPON(Ped ped)
Hash
0x814C9D19DFD69679

Open in the interactive natives reference