# SOCIALCLUB::SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID

- **Hash:** `0x7C981DE05A7403A0`
- **Namespace:** SOCIALCLUB
- **Runtime name (Lua/JS):** `ScCommunityEventGetExtraDataIntById`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **Note:** not used by the game's own scripts
- **URL:** https://natives.borderlinerp.com/natives/SOCIALCLUB/SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID

## Signature

```c
BOOL SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID(int p0, const char* p1, int* p2);
```

## Parameters

- `p0` (`int`)
- `p1` (`const char*`)
- `p2` (`int*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, p2 = ScCommunityEventGetExtraDataIntById(p0, p1, p2)

-- always available, by hash
local retval, p2 = Citizen.InvokeNative(0x7C981DE05A7403A0, p0, p1, Citizen.PointerValueIntInitialized(p2), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, p2] = ScCommunityEventGetExtraDataIntById(p0, p1, p2);

// by hash
const [retval, p2] = Citizen.invokeNative('0x7C981DE05A7403A0', p0, p1, Citizen.pointerValueIntInitialized(p2), Citizen.returnResultAnyway());
```

### C#

```csharp
var p2 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x7C981DE05A7403A0, p0, p1, p2);
// p2.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

*Sources: alloc8or RDR3 NativeDB.*
