RedM Natives

_NETWORK_GET_SIZE_OF_HOST_BROADCAST_DATA_STORAGE

Hash0xBA24095EA96DFE17
Runtime nameNetworkGetSizeOfHostBroadcastDataStorage
NamespaceNETWORK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _NETWORK_GET_SIZE_OF_HOST_BROADCAST_DATA_STORAGE(int* p0);

Parameters

NameTypeDescription
p0int*—

Returns int

Usage

Lua
local retval, p0 = NetworkGetSizeOfHostBroadcastDataStorage(p0)

-- always works, by hash
local retval, p0 = Citizen.InvokeNative(0xBA24095EA96DFE17, Citizen.PointerValueIntInitialized(p0), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, p0] = NetworkGetSizeOfHostBroadcastDataStorage(p0);

// by hash
const [retval, p0] = Citizen.invokeNative('0xBA24095EA96DFE17', Citizen.pointerValueIntInitialized(p0), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var p0 = new OutputArgument();
int retval = Function.Call<int>((Hash)0xBA24095EA96DFE17, p0);
// p0.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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