GetFilenameForAudioConversation
Docslocal retval = GetFilenameForAudioConversation(labelName)Description
Gets a localized string literal from a label name. This is used to get the filename of the audio conversation associated with the provided label name.
Parameters
| Name | Type | Description |
|---|---|---|
labelName | char* | The label name for which the audio conversation filename is requested. |
Returns
char*Examples
Official
-- Get the vehicle in which the player is currently seated
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
-- Get the model of the vehicle
local model = GetEntityModel(vehicle)
-- Get the display name of the vehicle model
local displayName = GetDisplayNameFromVehicleModel(model)
-- Get the label text for the audio conversation associated with the display name
local label = GetFilenameForAudioConversation(displayName)
-- Print the label text
print(label)