RedM Natives

_SET_VOFX_PED_VOICE

Hash0x2703EFB583F0949A
Runtime nameSetVofxPedVoice
NamespaceAUDIO
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_VOFX_PED_VOICE(Ped ped, Hash voice);

Parameters

NameTypeDescription
pedPed—
voiceHash—

Returns void

Description

Hashes: VOFX_PLAYER_MALE01, VOFX_PLAYER_MALE02, VOFX_PLAYER_MALE03, VOFX_PLAYER_FEMALE01, VOFX_PLAYER_FEMALE02, VOFX_PLAYER_FEMALE03

Usage

Lua
SetVofxPedVoice(ped, voice)

-- always works, by hash
Citizen.InvokeNative(0x2703EFB583F0949A, ped, voice)
JavaScript and C#
JavaScript
SetVofxPedVoice(ped, voice);

// by hash
Citizen.invokeNative('0x2703EFB583F0949A', ped, voice);
C#
Function.Call((Hash)0x2703EFB583F0949A, ped, voice);
  • 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`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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