patchDecalDiffuseMap
PATCH_DECAL_DIFFUSE_MAP0x8A35C742130C6080The 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.
patchDecalDiffuseMap(
decalType: number,
textureDict: string,
textureName: string
): voidpatchDecalDiffuseMap(
decalType: integer,
textureDict: string,
textureName: string
)Usage
JavaScript
patchDecalDiffuseMap(decalType, textureDict, textureName);Lua
patchDecalDiffuseMap(decalType, textureDict, textureName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
decalType | int | number | integer |
textureDict | string | string | string |
textureName | string | string | string |
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