AudioClient

overridePlayerGroundMaterial

OVERRIDE_PLAYER_GROUND_MATERIAL0xD2CC78CD3D0B50F9

The GTA V native OVERRIDE_PLAYER_GROUND_MATERIAL of the AUDIO namespace, as LS:MP client scripts call it: the global function overridePlayerGroundMaterial, in JavaScript and in Lua.

SignatureJavaScript
overridePlayerGroundMaterial(hash: Hash, toggle: boolean): void
SignatureLua
overridePlayerGroundMaterial(hash: Hash, toggle: boolean)

Usage

JavaScript
overridePlayerGroundMaterial(hash, toggle);
Lua
overridePlayerGroundMaterial(hash, toggle)

Parameters

ParameterTypeJavaScriptLua
hashHashnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets audio flag "OverridePlayerGroundMaterial"

Reference

Namespace
Audio AUDIO
In the game
void OVERRIDE_PLAYER_GROUND_MATERIAL(Hash hash, BOOL toggle)
Hash
0xD2CC78CD3D0B50F9

Open in the interactive natives reference