getMaxRangeOfCurrentPedWeapon
GET_MAX_RANGE_OF_CURRENT_PED_WEAPON0x814C9D19DFD69679The 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.
getMaxRangeOfCurrentPedWeapon(ped: Ped): numbergetMaxRangeOfCurrentPedWeapon(ped: Ped): numberUsage
JavaScript
const value = getMaxRangeOfCurrentPedWeapon(ped);Lua
local value = getMaxRangeOfCurrentPedWeapon(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
float JavaScript number, Lua numberReference
- Namespace
- Weapon WEAPON
- In the game
float GET_MAX_RANGE_OF_CURRENT_PED_WEAPON(Ped ped)- Hash
0x814C9D19DFD69679