# GRAPHICS::_GENERATE_SWATCH_TEXTURE_DIRECTLY

- **Hash:** `0x646ED1A1D28487DF`
- **Namespace:** GRAPHICS
- **Runtime name (Lua/JS):** `GenerateSwatchTextureDirectly`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/GRAPHICS/_GENERATE_SWATCH_TEXTURE_DIRECTLY

## Signature

```c
void _GENERATE_SWATCH_TEXTURE_DIRECTLY(int slot, Any p1);
```

## Parameters

- `slot` (`int`)
- `p1` (`Any`)

## Returns

`void`

## Description

Example: https://pastebin.com/tTgpER9A

## Usage

### Lua

```lua
GenerateSwatchTextureDirectly(slot, p1)

-- always available, by hash
Citizen.InvokeNative(0x646ED1A1D28487DF, slot, p1)
```

### JavaScript

```js
GenerateSwatchTextureDirectly(slot, p1);

// by hash
Citizen.invokeNative('0x646ED1A1D28487DF', slot, p1);
```

### C#

```csharp
Function.Call((Hash)0x646ED1A1D28487DF, slot, p1);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
