> For the complete documentation index, see [llms.txt](https://codeforge.gitbook.io/codeforge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codeforge.gitbook.io/codeforge/sleek-series/sleek-chat/commands.md).

# Commands

New Commands and Internal Commands

## CREATE COMMANDS

The Chat comes with a large number of pre-create commands, enough to have a completely **RP CHAT**, but you can change and add all the commands you want, infinitely. You will only have to copy and paste the variables and use the ones you want.

{% code overflow="wrap" %}

```
[!!] Here below you have all the variables that you can use to create your command. You can create all the commands you want. [!!]
```

{% endcode %}

{% code lineNumbers="true" fullWidth="true" %}

```lua
====================================================================================================
                                    📚 COMMAND CONFIGURATION GUIDE
====================================================================================================

Below is a complete example showing ALL available variables for creating custom commands.
Copy this template and modify it for your own commands:

{
    Command = 'example',                    -- The command name (without slash)
    Label = '<strong>EXAMPLE</strong>',     -- Text shown in the chat label/tag
    Role = 'Example Role',                  -- Role name shown (optional)
    
    -- PLAYER NAME OPTIONS:
    PlayerName = 'RP',                      -- How to display sender name:
                                            -- 'RP' = Character name (John Doe)
                                            -- 'Steam' = Steam username  
                                            -- 'None' = No name (completely anonymous)
                                            -- 'Anonymous' = Shows "Anonymous ID: 123"
    
    -- PROXIMITY OPTIONS:
    Proximity = true,                       -- If true, only nearby players see the message
    
    -- POPUP OPTIONS:
    ShowPopUp = true,                       -- If true, shows popup above player's head
    
    -- JOB RESTRICTIONS:
    JobCheck = {
        Global = false,                     -- If true, everyone sees it regardless of job
                                            -- If false, only specified jobs can see it
        Jobs = { 'police', 'ambulance' }    -- Array of job names that can use/see this command
    },
    
    -- ADMIN RESTRICTIONS:
    AdminOnly = true,                       -- If true, only admins can use this command
    AdminCheck = {
        Global = false,                     -- If true, everyone sees admin messages
                                            -- If false, only admins with specified ranks see it
        Ranks = { 'god', 'superadmin' }     -- Array of admin ranks that can use/see this
    },
    
    -- JOB LABEL OPTIONS:
    JobLabel = true,                        -- If true, shows player's job in the message
    ColorJobLabel = 'black',                -- Color for the job label text
    
    -- VISUAL STYLING:
    Style = {
        -- MESSAGE CONTAINER STYLING:
        Background = 'linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.25) 50%, rgba(196, 181, 253, 0.15) 100%)',
        Border = '1px solid rgba(139, 92, 246, 0.35)',
        BoxShadow = '0 6px 24px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08)',
        
        -- AUTHOR NAME STYLING:
        AuthorColor = '#6366f1',             -- Color of the player name text
        
        -- LABEL BOX STYLING (the command tag/label):
        LabelBoxContainer = '0px 0px 12px rgba(139, 92, 246, 0.4)',      -- Shadow around label
        LabelBoxBackground = 'linear-gradient(135deg, rgba(99, 102, 241, 0.75) 0%, rgba(139, 92, 246, 0.55) 100%)',
        LabelBoxBorder = '1px solid rgba(196, 181, 253, 0.5)',           -- Label border
        LabelBoxShadow = '0 3px 12px rgba(99, 102, 241, 0.3)'           -- Label shadow
    },
    
    -- HELP TEXT (shown in command suggestions):
    Help = {
        Title = 'Example Command',           -- Short title for the command
        Subtitle = 'Description of what this command does'  -- Longer description
    }
},

NOTE: You can mix and match these options. Not all variables are required.
Common combinations:
- Basic global command: Just Command, Label, Style, Help
- Job-only command: Add JobCheck with Global=false and specific Jobs
- Admin command: Add AdminOnly=true or AdminCheck
- Proximity command: Add Proximity=true for local area only
- Anonymous command: Add PlayerName='None' for no sender name

====================================================================================================
```

{% endcode %}

## INTERNAL COMMANDS

These commands are the commands that cannot be edited or created, they are internal to the chat.

* &#x20;<mark style="background-color:green;">USED ​​BY EVERYONE</mark> - With the /<mark style="color:red;">`chatclear`</mark> command you can delete your chat history, only you will see it.&#x20;
* &#x20;<mark style="background-color:yellow;">USED ​​BY ADMINS</mark> - With the /<mark style="color:red;">`chatclearall`</mark> command you can clear all global chat history as an administrator.
* &#x20;<mark style="background-color:yellow;">USED ​​BY ADMINS</mark> - With the <mark style="color:red;">`/mute`</mark> <mark style="color:blue;">`ID`</mark> <mark style="color:orange;">`TIME`</mark> command, you can mute the player you want for as long as you want.
