RedM Natives

SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID

Hash0x7C981DE05A7403A0
Runtime nameScCommunityEventGetExtraDataIntById
NamespaceSOCIALCLUB
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8CC469AB4D349B7C

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

Signature

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

Parameters

NameTypeDescription
p0int—
p1const char*—
p2int*—

Returns BOOL

Usage

Lua
local retval, p2 = ScCommunityEventGetExtraDataIntById(p0, p1, p2)

-- always works, by hash
local retval, p2 = Citizen.InvokeNative(0x7C981DE05A7403A0, p0, p1, Citizen.PointerValueIntInitialized(p2), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, p2] = ScCommunityEventGetExtraDataIntById(p0, p1, p2);

// by hash
const [retval, p2] = Citizen.invokeNative('0x7C981DE05A7403A0', p0, p1, Citizen.pointerValueIntInitialized(p2), Citizen.returnResultAnyway());
C#
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

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