# SOCIALCLUB::SC_COMMUNITY_EVENT_GET_EVENT_ID

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

## Signature

```c
int SC_COMMUNITY_EVENT_GET_EVENT_ID();
```

## Returns

`int`

## Usage

### Lua

```lua
local retval = ScCommunityEventGetEventId()

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

### JavaScript

```js
const retval = ScCommunityEventGetEventId();

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

### C#

```csharp
int retval = Function.Call<int>((Hash)0xD635DF6BAA5A6017);
```

*Sources: alloc8or RDR3 NativeDB.*
