IS_WEAPON_RIFLE
Hash
0x0A82317B7EBFC420Runtime name
IsWeaponRifleNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL IS_WEAPON_RIFLE(Hash weaponHash);Parameters
| Name | Type | Description |
|---|---|---|
weaponHash | Hash | — |
Returns BOOL
Usage
local retval = IsWeaponRifle(weaponHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0A82317B7EBFC420, weaponHash, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsWeaponRifle(weaponHash);
// by hash
const retval = Citizen.invokeNative('0x0A82317B7EBFC420', weaponHash, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x0A82317B7EBFC420, 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`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.