The Lab
SOCIALCLUB native

SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT

returns BOOL2 paramsbuild 1207

Reads an integer value from the active community event's extra data by key and returns true if it was found.

Signature

C
BOOL SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT(const char* p0, int* p1); // 0xB4411D4D6B81438E b1207

Parameters

#NameType
1p0const char*
2p1int* (out pointer)

Facts

Facts about SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT
Name
SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT
Hash
0xB4411D4D6B81438E
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, p1 = Citizen.InvokeNative(0xB4411D4D6B81438E, -- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT
  "text", -- const char* p0
  Citizen.PointerValueInt(), -- int* p1
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, p1] = Citizen.invokeNative("0xB4411D4D6B81438E", // SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT
  "text", // const char* p0
  Citizen.pointerValueInt(), // int* p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var p1Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xB4411D4D6B81438E, // SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT
  "text", // const char* p0
  p1Arg // int* p1
);
int p1 = p1Arg.GetResult<int>();
All SOCIALCLUB natives

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