# CFX::SET_TEXT_FONT_FOR_CURRENT_COMMAND

- **Hash:** `0xADA9255D`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetTextFontForCurrentCommand`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_TEXT_FONT_FOR_CURRENT_COMMAND

## Signature

```c
void SET_TEXT_FONT_FOR_CURRENT_COMMAND(int fontId);
```

## Parameters

- `fontId` (`int`) — The index of the font.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Sets the text font for the current text drawing command.

## Usage

### Lua

```lua
SetTextFontForCurrentCommand(fontId)

-- always available, by hash
Citizen.InvokeNative(0xada9255d, fontId)
```

### JavaScript

```js
SetTextFontForCurrentCommand(fontId);

// by hash
Citizen.invokeNative('0xada9255d', fontId);
```

### C#

```csharp
Function.Call((Hash)0xada9255d, fontId);
```

*Sources: Cfx.re native reference.*
