RedM Natives

SC_COMMUNITY_EVENT_GET_EVENT_ID

Hash0xD635DF6BAA5A6017
Runtime nameScCommunityEventGetEventId
NamespaceSOCIALCLUB
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4ED9C8D6DA297639

Not called by the game's own scripts — behaviour may be incomplete.

Signature

int SC_COMMUNITY_EVENT_GET_EVENT_ID();

Returns int

Usage

Lua
local retval = ScCommunityEventGetEventId()

-- always works, by hash
local retval = Citizen.InvokeNative(0xD635DF6BAA5A6017, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = ScCommunityEventGetEventId();

// by hash
const retval = Citizen.invokeNative('0xD635DF6BAA5A6017', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xD635DF6BAA5A6017);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.