RedM Natives

ADD_TEXT_ENTRY_BY_HASH

Hash0x289DA860
Runtime nameAddTextEntryByHash
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void ADD_TEXT_ENTRY_BY_HASH(Hash entryKey, char* entryText);

Parameters

NameTypeDescription
entryKeyHash—
entryTextchar*—

Returns void

Usage

Lua
AddTextEntryByHash(entryKey, entryText)

-- always works, by hash
Citizen.InvokeNative(0x289da860, entryKey, entryText)
JavaScript and C#
JavaScript
AddTextEntryByHash(entryKey, entryText);

// by hash
Citizen.invokeNative('0x289da860', entryKey, entryText);
C#
Function.Call((Hash)0x289da860, entryKey, entryText);
  • 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`.

Sources

Cfx.re native reference

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