RedM Natives

DATADICT_IS_ARRAY_VALID

Hash0xB04B69CF277D15C0
Runtime nameDatadictIsArrayValid
NamespaceDATAFILE
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL DATADICT_IS_ARRAY_VALID(Any* fileDict);

Parameters

NameTypeDescription
fileDictAny*—

Returns BOOL

Usage

Lua
local retval, fileDict = DatadictIsArrayValid(fileDict)

-- always works, by hash
local retval, fileDict = Citizen.InvokeNative(0xB04B69CF277D15C0, Citizen.PointerValueIntInitialized(fileDict), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, fileDict] = DatadictIsArrayValid(fileDict);

// by hash
const [retval, fileDict] = Citizen.invokeNative('0xB04B69CF277D15C0', Citizen.pointerValueIntInitialized(fileDict), Citizen.returnResultAnyway());
C#
var fileDict = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xB04B69CF277D15C0, fileDict);
// fileDict.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

Sources

alloc8or RDR3 NativeDB

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