DATADICT_GET_STRING
Returns the string stored under key in the data dictionary objectData.
Signature
const char* DATADICT_GET_STRING(Any* objectData, const char* key); // 0xE37B38C0B4E95DFA b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | objectData | Any* (out pointer) |
| 2 | key | const char* |
Facts
| 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.
local result, objectData = Citizen.InvokeNative(0xE37B38C0B4E95DFA, -- DATADICT_GET_STRING
Citizen.PointerValueInt(), -- Any* objectData
"text", -- const char* key
Citizen.ResultAsString()
)
print(result, objectData)const [result, objectData] = Citizen.invokeNative("0xE37B38C0B4E95DFA", // DATADICT_GET_STRING
Citizen.pointerValueInt(), // Any* objectData
"text", // const char* key
Citizen.resultAsString()
);
console.log(result, objectData)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>();Related DATAFILE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.