The Lab
SOCIALCLUB native

SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING_BY_ID

returns BOOL3 paramsbuild 1207

Reads a string 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_STRING_BY_ID(int p0, const char* p1, char* p2); // 0x049D2196D9D11184 b1207

Parameters

#NameType
1p0int
2p1const char*
3p2char*

Facts

Facts about SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING_BY_ID
Name
SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING_BY_ID
Hash
0x049D2196D9D11184
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 = Citizen.InvokeNative(0x049D2196D9D11184, -- SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING_BY_ID
  0, -- int p0
  "text", -- const char* p1
  "text" -- char* p2
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x049D2196D9D11184", // SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING_BY_ID
  0, // int p0
  "text", // const char* p1
  "text", // char* p2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x049D2196D9D11184, // SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING_BY_ID
  0, // int p0
  "text", // const char* p1
  "text" // char* p2
);
All SOCIALCLUB natives

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