> For the complete documentation index, see [llms.txt](https://docs.justscripts.net/scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.justscripts.net/scripts/justhud/placeholders.md).

# Placeholders

The texts and values of all elements are customizable using placeholder, you can use them instead of updating values.

### Default placeholders

> %id% - Player server ID\
> %name% - Player full name\
> %health% - Player health percentage\
> %armor% - Player armor percentage\
> %hunger% - Player hunger percentage\
> %thirst% - Player thirst percentage\
> %stress% - Player stress percentage\
> %stamina% - Player stamina percentage\
> %cash% - Player wallet\
> %bank% - Player bank\
> %job\_label% - Player current job label\
> %job\_grade% - Player current job grade \
> %time% - current time (game time if it is enabled in config)\
> %date% - current date

### Custom placeholders

for creating custom placeholders (custom data) you need to edit GetExtraEdit() method in handlers.lua

```lua
-- You should return table like this with how many keys you want
-- In example below, %TestData% can be used as a placeholder for "Test" static value
function GetExtraData()
    return {
        TestData = "Test"
    }
end

```

### Formatting numbers

You can format numbers for better display in HUD

```lua
-- in example below, if player cash is 111111 the output would be: 111,111
local placeholder = "format(%cash%)"
```
