RedM Natives

GET_FILENAME_FOR_AUDIO_CONVERSATION

Gets a string literal from a label name.

Hash0xCFEDCCAD3C5BA90D
Runtime nameGetFilenameForAudioConversation
NamespaceHUD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7B5280EBA9840C72

Signature

const char* GET_FILENAME_FOR_AUDIO_CONVERSATION(const char* labelName);

Parameters

NameTypeDescription
labelNameconst char*—

Returns const char*

Description

Gets a string literal from a label name.

Old name: _GET_LABEL_TEXT

Usage

Lua
local retval = GetFilenameForAudioConversation(labelName)

-- always works, by hash
local retval = Citizen.InvokeNative(0xCFEDCCAD3C5BA90D, labelName, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetFilenameForAudioConversation(labelName);

// by hash
const retval = Citizen.invokeNative('0xCFEDCCAD3C5BA90D', labelName, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0xCFEDCCAD3C5BA90D, labelName);

Sources

alloc8or RDR3 NativeDB

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