The Lab
ITEMDATABASE native

_ITEMDATABASE_FILLOUT_BUNDLE

returns BOOL4 paramsbuild 1232

Fills outData with entry index of bundle for cost type costtype. Returns true on success.

Signature

C
BOOL _ITEMDATABASE_FILLOUT_BUNDLE(Hash bundle, Hash costtype, int index, Any* outData); // 0xB542632693D53408 b1232

Parameters

#NameType
1bundleHash
2costtypeHash
3indexint
4outDataAny* (out pointer)

Facts

Facts about _ITEMDATABASE_FILLOUT_BUNDLE
Name
_ITEMDATABASE_FILLOUT_BUNDLE
Hash
0xB542632693D53408
Namespace
Returns
BOOL
Game build
1232

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, outData = Citizen.InvokeNative(0xB542632693D53408, -- _ITEMDATABASE_FILLOUT_BUNDLE
  GetHashKey("name"), -- Hash bundle
  GetHashKey("name"), -- Hash costtype
  0, -- int index
  Citizen.PointerValueInt(), -- Any* outData
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, outData] = Citizen.invokeNative("0xB542632693D53408", // _ITEMDATABASE_FILLOUT_BUNDLE
  GetHashKey("name"), // Hash bundle
  GetHashKey("name"), // Hash costtype
  0, // int index
  Citizen.pointerValueInt(), // Any* outData
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outDataArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xB542632693D53408, // _ITEMDATABASE_FILLOUT_BUNDLE
  (uint)API.GetHashKey("name"), // Hash bundle
  (uint)API.GetHashKey("name"), // Hash costtype
  0, // int index
  outDataArg // Any* outData
);
int outData = outDataArg.GetResult<int>();
All ITEMDATABASE natives

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