RedM Natives

SET_PLAYER_TALKING_OVERRIDE

the status of default voip system.

Hash0xFC02CAF6
Runtime nameSetPlayerTalkingOverride
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_PLAYER_TALKING_OVERRIDE(Player player, BOOL state);

Parameters

NameTypeDescription
playerPlayer

The target player.

stateBOOL

Overriding state.

Returns void

Description

Cfx.re native reference

the status of default voip system. It affects on NETWORK_IS_PLAYER_TALKING and mp_facial animation. This function doesn't need to be called every frame, it works like a switcher.

Usage

Lua
SetPlayerTalkingOverride(player, state)

-- always works, by hash
Citizen.InvokeNative(0xfc02caf6, player, state)
JavaScript and C#
JavaScript
SetPlayerTalkingOverride(player, state);

// by hash
Citizen.invokeNative('0xfc02caf6', player, state);
C#
Function.Call((Hash)0xfc02caf6, player, state);

Sources

Cfx.re native reference

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