SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT_BY_ID
Hash
0x7C981DE05A7403A0Runtime name
ScCommunityEventGetExtraDataIntByIdNamespaceSOCIALCLUB
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8CC469AB4D349B7CNot 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
| Name | Type | Description |
|---|---|---|
p0 | int | — |
p1 | const char* | — |
p2 | int* | — |
Returns BOOL
Usage
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#
const [retval, p2] = ScCommunityEventGetExtraDataIntById(p0, p1, p2);
// by hash
const [retval, p2] = Citizen.invokeNative('0x7C981DE05A7403A0', p0, p1, Citizen.pointerValueIntInitialized(p2), Citizen.returnResultAnyway());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.