GraphicsClient

patchDecalDiffuseMap

PATCH_DECAL_DIFFUSE_MAP0x8A35C742130C6080

The GTA V native PATCH_DECAL_DIFFUSE_MAP of the GRAPHICS namespace, as LS:MP client scripts call it: the global function patchDecalDiffuseMap, in JavaScript and in Lua.

SignatureJavaScript
patchDecalDiffuseMap(
  decalType: number,
  textureDict: string,
  textureName: string
): void
SignatureLua
patchDecalDiffuseMap(
  decalType: integer,
  textureDict: string,
  textureName: string
)

Usage

JavaScript
patchDecalDiffuseMap(decalType, textureDict, textureName);
Lua
patchDecalDiffuseMap(decalType, textureDict, textureName)

Parameters

ParameterTypeJavaScriptLua
decalTypeintnumberinteger
textureDictstringstringstring
textureNamestringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void PATCH_DECAL_DIFFUSE_MAP(int decalType, const char* textureDict, const char* textureName)
Hash
0x8A35C742130C6080
Formerly
_ADD_DECAL_TO_MARKER _OVERRIDE_DECAL_TEXTURE

Open in the interactive natives reference