# WEAPON::GET_WEAPONTYPE_GROUP

- **Hash:** `0xEDCA14CA5199FF25`
- **Namespace:** WEAPON
- **Runtime name (Lua/JS):** `GetWeapontypeGroup`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/WEAPON/GET_WEAPONTYPE_GROUP

## Signature

```c
Hash GET_WEAPONTYPE_GROUP(Hash weaponHash);
```

## Parameters

- `weaponHash` (`Hash`)

## Returns

`Hash`

## Usage

### Lua

```lua
local retval = GetWeapontypeGroup(weaponHash)

-- always available, by hash
local retval = Citizen.InvokeNative(0xEDCA14CA5199FF25, weaponHash, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetWeapontypeGroup(weaponHash);

// by hash
const retval = Citizen.invokeNative('0xEDCA14CA5199FF25', weaponHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xEDCA14CA5199FF25, 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` ``.

*Sources: alloc8or RDR3 NativeDB.*
