# SOCIALCLUB::SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT

- **Hash:** `0xB4411D4D6B81438E`
- **Namespace:** SOCIALCLUB
- **Runtime name (Lua/JS):** `ScCommunityEventGetExtraDataInt`
- **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

## Signature

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

## Parameters

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

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, p1 = ScCommunityEventGetExtraDataInt(p0, p1)

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

### JavaScript

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

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

### C#

```csharp
var p1 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xB4411D4D6B81438E, p0, p1);
// p1.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.*
