RedM Natives

MUMBLE_SET_AUDIO_INPUT_DISTANCE

Sets the current input distance.

Hash0x1B1052E2
Runtime nameMumbleSetAudioInputDistance
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void MUMBLE_SET_AUDIO_INPUT_DISTANCE(float distance);

Parameters

NameTypeDescription
distancefloat

The input distance.

Returns void

Description

Cfx.re native reference

Sets the current input distance. The player will be able to talk to other players within this distance.

Usage

Lua
MumbleSetAudioInputDistance(distance)

-- always works, by hash
Citizen.InvokeNative(0x1b1052e2, distance)
JavaScript and C#
JavaScript
MumbleSetAudioInputDistance(distance);

// by hash
Citizen.invokeNative('0x1b1052e2', distance + 0.0000001);
C#
Function.Call((Hash)0x1b1052e2, distance);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

Cfx.re native reference

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