RedM Natives

SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT

Hash0xB4411D4D6B81438E
Runtime nameScCommunityEventGetExtraDataInt
NamespaceSOCIALCLUB
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x710BCDA8071EDED1

Not called by the game's own scripts — behaviour may be incomplete.

Signature

BOOL SC_COMMUNITY_EVENT_GET_EXTRA_DATA_INT(const char* p0, int* p1);

Parameters

NameTypeDescription
p0const char*—
p1int*—

Returns BOOL

Usage

Lua
local retval, p1 = ScCommunityEventGetExtraDataInt(p0, p1)

-- always works, by hash
local retval, p1 = Citizen.InvokeNative(0xB4411D4D6B81438E, p0, Citizen.PointerValueIntInitialized(p1), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, p1] = ScCommunityEventGetExtraDataInt(p0, p1);

// by hash
const [retval, p1] = Citizen.invokeNative('0xB4411D4D6B81438E', p0, Citizen.pointerValueIntInitialized(p1), Citizen.returnResultAnyway());
C#
var p1 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xB4411D4D6B81438E, p0, p1);
// p1.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.