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 ?
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.
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)
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