RedM Natives

GET_NUMBER_OF_FREE_STACKS_OF_THIS_SIZE

Hash0x40DC2907A9697EF7
Runtime nameGetNumberOfFreeStacksOfThisSize
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xFEAD16FC8F9DFC0F

Signature

int GET_NUMBER_OF_FREE_STACKS_OF_THIS_SIZE(int stackSize);

Parameters

NameTypeDescription
stackSizeint—

Returns int

Usage

Lua
local retval = GetNumberOfFreeStacksOfThisSize(stackSize)

-- always works, by hash
local retval = Citizen.InvokeNative(0x40DC2907A9697EF7, stackSize, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetNumberOfFreeStacksOfThisSize(stackSize);

// by hash
const retval = Citizen.invokeNative('0x40DC2907A9697EF7', stackSize, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x40DC2907A9697EF7, stackSize);

Sources

alloc8or RDR3 NativeDB

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