The Lab
SOCIALCLUB native

SC_COMMUNITY_EVENT_GET_EXTRA_DATA_STRING

returns BOOL2 paramsbuild 1207

Reads a string 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_STRING(const char* p0, char* p1); // 0x9F6DCD0C939C71E9 b1207

Parameters

#NameType
1p0const char*
2p1char*

Facts

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

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