RedM Natives

_ITEMDATABASE_FILLOUT_TAG_DATA

Hash0x5A11D6EEA17165B0
Runtime nameItemdatabaseFilloutTagData
NamespaceITEMDATABASE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _ITEMDATABASE_FILLOUT_TAG_DATA(Hash key, Any* outData, int* outIndex, int p3);

Parameters

NameTypeDescription
keyHash—
outDataAny*—
outIndexint*—
p3int—

Returns BOOL

Usage

Lua
local retval, outData, outIndex = ItemdatabaseFilloutTagData(key, p3)

-- always works, by hash
local retval, outData, outIndex = Citizen.InvokeNative(0x5A11D6EEA17165B0, key, Citizen.PointerValueInt(), Citizen.PointerValueInt(), p3, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, outData, outIndex] = ItemdatabaseFilloutTagData(key, p3);

// by hash
const [retval, outData, outIndex] = Citizen.invokeNative('0x5A11D6EEA17165B0', key, Citizen.pointerValueInt(), Citizen.pointerValueInt(), p3, Citizen.returnResultAnyway());
C#
var outData = new OutputArgument();
var outIndex = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x5A11D6EEA17165B0, key, outData, outIndex, p3);
// outData.GetResult<int>()
// outIndex.GetResult<int>()
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • 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.