The Lab
GRAPHICS native

_GENERATE_SWATCH_TEXTURE

returns void4 paramsbuild 1207

Generates a swatch texture in slotId for the clothing component componentHash.

Signature

C
void _GENERATE_SWATCH_TEXTURE(int slotId, Hash componentHash, int metapedType, BOOL p3); // 0x160921255327C591 b1207

Parameters

#NameType
1slotIdint
2componentHashHash
3metapedTypeint
4p3BOOL

Facts

Facts about _GENERATE_SWATCH_TEXTURE
Name
_GENERATE_SWATCH_TEXTURE
Hash
0x160921255327C591
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x160921255327C591, -- _GENERATE_SWATCH_TEXTURE
  0, -- int slotId
  GetHashKey("name"), -- Hash componentHash
  0, -- int metapedType
  false -- BOOL p3
)
JavaScript
Citizen.invokeNative("0x160921255327C591", // _GENERATE_SWATCH_TEXTURE
  0, // int slotId
  GetHashKey("name"), // Hash componentHash
  0, // int metapedType
  false // BOOL p3
);
C#
Function.Call((Hash)0x160921255327C591, // _GENERATE_SWATCH_TEXTURE
  0, // int slotId
  (uint)API.GetHashKey("name"), // Hash componentHash
  0, // int metapedType
  false // BOOL p3
);
All GRAPHICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.