The Lab
SOCIALCLUB native

SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID

returns BOOL3 paramsbuild 1207

Reads an integer value by key from the extra data of the community event with the given id and returns true if found.

Signature

C
BOOL SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID(int p0, const char* p1, int* p2); // 0x7C981DE05A7403A0 b1207

Parameters

#NameType
1p0int
2p1const char*
3p2int* (out pointer)

Facts

Facts about SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID
Name
SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID
Hash
0x7C981DE05A7403A0
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, p2 = Citizen.InvokeNative(0x7C981DE05A7403A0, -- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID
  0, -- int p0
  "text", -- const char* p1
  Citizen.PointerValueInt(), -- int* p2
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, p2] = Citizen.invokeNative("0x7C981DE05A7403A0", // SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID
  0, // int p0
  "text", // const char* p1
  Citizen.pointerValueInt(), // int* p2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var p2Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x7C981DE05A7403A0, // SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID
  0, // int p0
  "text", // const char* p1
  p2Arg // int* p2
);
int p2 = p2Arg.GetResult<int>();
All SOCIALCLUB natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.