# NETWORK::_UGC_QUERY_BY_CONTENT_TYPE

- **Hash:** `0xF40EF49B3099E98E`
- **Namespace:** NETWORK
- **Runtime name (Lua/JS):** `UgcQueryByContentType`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/NETWORK/_UGC_QUERY_BY_CONTENT_TYPE

## Signature

```c
int _UGC_QUERY_BY_CONTENT_TYPE(int p0, int maxGet, const char* contentTypeName, int p3, int p4, int p5);
```

## Parameters

- `p0` (`int`)
- `maxGet` (`int`)
- `contentTypeName` (`const char*`)
- `p3` (`int`)
- `p4` (`int`)
- `p5` (`int`)

## Returns

`int`

## Description

Returns ugcRequestId

## Usage

### Lua

```lua
local retval = UgcQueryByContentType(p0, maxGet, contentTypeName, p3, p4, p5)

-- always available, by hash
local retval = Citizen.InvokeNative(0xF40EF49B3099E98E, p0, maxGet, contentTypeName, p3, p4, p5, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = UgcQueryByContentType(p0, maxGet, contentTypeName, p3, p4, p5);

// by hash
const retval = Citizen.invokeNative('0xF40EF49B3099E98E', p0, maxGet, contentTypeName, p3, p4, p5, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xF40EF49B3099E98E, p0, maxGet, contentTypeName, p3, p4, p5);
```

- 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.*
