_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*
Hash
0xEA522F991E120D45Runtime name
IsWeaponCloseRangeNamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _IS_WEAPON_CLOSE_RANGE(Hash weaponHash);Parameters
| Name | Type | Description |
|---|---|---|
weaponHash | Hash | — |
Returns BOOL
Description
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*
_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
local retval = IsWeaponCloseRange(weaponHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0xEA522F991E120D45, weaponHash, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsWeaponCloseRange(weaponHash);
// by hash
const retval = Citizen.invokeNative('0xEA522F991E120D45', weaponHash, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xEA522F991E120D45, weaponHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.