{"hash":"0xEA522F991E120D45","ns":"WEAPON","name":"_IS_WEAPON_CLOSE_RANGE","slug":"_IS_WEAPON_CLOSE_RANGE","official":false,"named":true,"luaName":"IsWeaponCloseRange","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"weaponHash","type":"Hash"}],"summary":"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*","descriptions":[{"source":"alloc8or","format":"text","body":"Returns true for lassos, melee, thrown weapons (machetes and unarmed return false)\nReturns false for all guns, bows and animal weapons\n_IS_WEAPON_S* - _IS_WEAPON_V*"},{"source":"vorp","format":"text","body":"_IS_WEAPON_CLOSE_RANGE?\nreturns true when it's lassos , melee, thrown weapons (matchetes and unarmed return false)\nall guns ,bows and animal weapons return false"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_IS_WEAPON_CLOSE_RANGE","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_IS_WEAPON_CLOSE_RANGE.md","snippets":{"lua":"local retval = IsWeaponCloseRange(weaponHash)","luaInvoke":"local retval = Citizen.InvokeNative(0xEA522F991E120D45, weaponHash, Citizen.ReturnResultAnyway())","js":"const retval = IsWeaponCloseRange(weaponHash);","jsInvoke":"const retval = Citizen.invokeNative('0xEA522F991E120D45', weaponHash, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xEA522F991E120D45, weaponHash);","notes":["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."]}}