[Help] Sound reduction when LCTRL (Stealth Mode)

In GTA V (vanilla and FiveM), when we press LCTRL, the ped is crouching/ducking, and ambient sounds are reduced.
Can we simulate, in lua (or C#), with native call, this sound reduction ?

I tried “SetAudioFlag” ( http://runtime.fivem.net/doc/reference.html#_0xB9EFD5C25018725A ) with flag “SpeechDucksScore”, but nothing.

Have you tried this native?

SetPlayerNoiseMultiplier(Player player, float multiplier)

Or this one?

SetPlayerSneakingNoiseMultiplier(Player player, float multiplier)

Thanks for the help, but unfortunately, according to natives name and some quick tests

SetPlayerNoiseMultiplier(-1, 0.0)
SetPlayerSneakingNoiseMultiplier(-1, 0.0)

then

SetPlayerNoiseMultiplier(-1, 1.0)
SetPlayerSneakingNoiseMultiplier(-1, 1.0)

or

SetPlayerNoiseMultiplier(-1, 2.0)
SetPlayerSneakingNoiseMultiplier(-1, 2.0)

it won’t do the trick :confused:

What I want is, as local client, reduce the sound volume of all ambient events, like NPC car traffic, horns, etc) and not reduce the noise that my player will produce.
Exactly the same way as when we, as player, press LCTRL to duck/crouch/… (in GTA offline or in FiveM, without any client script), except I don’t wanna change the “movement clipset” of the ped.

I’ve never even noticed this :confused: so not sure what you want…

Apparently, it’s called “stealth mode” : http://www.ign.com/wikis/gta-5/Stealth_Mode
As I said, when you are in stealth mode, you walk slowly, and the sound you hear is reduced. (dunno about produced sound, as I quite never play in GTA:O)

And, by searching “stealth” in Natives, I found some functions, like http://runtime.fivem.net/doc/reference.html#_0xF28965D04F570DCA, I’ll test it later, maybe it will work.

Well, I tried ForcePedMotionState and SetPedStealthMovement, both of them change the player to stealth mode, including sound reduction and movement ‘clipset’ modified, but unfortunately, I can’t only apply sound reduction :confused:

Have you found a solution to this? I need players to be silent when in interior so that other instanced players cant hear them