RedM Natives

_IS_WEAPON_CLOSE_RANGE

Returns true for lassos, melee, thrown weapons (machetes and unarmed return false) Returns false for all guns, bows and animal weapons _IS_WEAPON_S* - _IS_WEAPON_V*

Hash0xEA522F991E120D45
Runtime nameIsWeaponCloseRange
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _IS_WEAPON_CLOSE_RANGE(Hash weaponHash);

Parameters

NameTypeDescription
weaponHashHash—

Returns BOOL

Description

alloc8or RDR3 NativeDB

Returns true for lassos, melee, thrown weapons (machetes and unarmed return false)
Returns false for all guns, bows and animal weapons
_IS_WEAPON_S* - _IS_WEAPON_V*

VORPCORE RDR3natives

_IS_WEAPON_CLOSE_RANGE?
returns true when it's lassos , melee, thrown weapons (matchetes and unarmed return false)
all guns ,bows and animal weapons return false

Usage

Lua
local retval = IsWeaponCloseRange(weaponHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0xEA522F991E120D45, weaponHash, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsWeaponCloseRange(weaponHash);

// by hash
const retval = Citizen.invokeNative('0xEA522F991E120D45', weaponHash, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xEA522F991E120D45, weaponHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.