The Lab
DATAFILE native

DATADICT_GET_STRING

returns const char*2 paramsbuild 1207

Returns the string stored under key in the data dictionary objectData.

Signature

C
const char* DATADICT_GET_STRING(Any* objectData, const char* key); // 0xE37B38C0B4E95DFA b1207

Parameters

#NameType
1objectDataAny* (out pointer)
2keyconst char*

Facts

Facts about DATADICT_GET_STRING
Name
DATADICT_GET_STRING
Hash
0xE37B38C0B4E95DFA
Namespace
Returns
const char*
Game build
1207

Examples

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

Lua
local result, objectData = Citizen.InvokeNative(0xE37B38C0B4E95DFA, -- DATADICT_GET_STRING
  Citizen.PointerValueInt(), -- Any* objectData
  "text", -- const char* key
  Citizen.ResultAsString()
)
print(result, objectData)
JavaScript
const [result, objectData] = Citizen.invokeNative("0xE37B38C0B4E95DFA", // DATADICT_GET_STRING
  Citizen.pointerValueInt(), // Any* objectData
  "text", // const char* key
  Citizen.resultAsString()
);
console.log(result, objectData)
C#
var objectDataArg = new OutputArgument();
string result = Function.Call<string>((Hash)0xE37B38C0B4E95DFA, // DATADICT_GET_STRING
  objectDataArg, // Any* objectData
  "text" // const char* key
);
int objectData = objectDataArg.GetResult<int>();
All DATAFILE natives

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