Skip to content

Chat

NutScript Chat Command Documentation.

Built-in and bundled-plugin chat commands registered through nut.chat.register. Commands are executed server-side by a player and receive the issuing player plus parsed command arguments.

See also: Chat library

Talking chat commands

ic (message)
sh_ic

In-character chat, as if your character says something out loud. Triggers by default when no command is present. Text said by characters being looked at will be coloured green.

Parameters:

string message The message to send

Usage:

    1
    2
    3
    What are you waiting for, get NutScript today!
    
    Chat output: Chestnut says "What are you waiting for, get NutScript today!"
    

me (message)
sh_me

Message that represents an action, as if the character is performing.

Parameters:

string message The message to simulate an action

Usage:

    1
    2
    3
    /me laughs at the funny reference.
    
    Chat output: **Chestnut laughs at the funny reference.
    

it (message)
sh_it

Message that represents an action disconnected from the character.

Parameters:

string message The message to simulate an action

Usage:

    1
    2
    3
    /it A skeleton runs past.
    
    Chat output: **A skeleton runs past.
    

w (message)
sh_w

In-character chat, as if your character whispers something. Hearing radius is reduced.

Parameters:

string message The message to send

Usage:

    1
    2
    3
    /w What was that?
    
    Chat output: Chestnut whispers "What was that?"
    

w (message)
sh_w

In-character chat, as if your character yells something. Hearing radius is increased.

Parameters:

string message The message to send

Usage:

    1
    2
    3
    /w WOAH DID ANYONE JUST SEE THAT?
    
    Chat output: Chestnut yells "WOAH DID ANYONE JUST SEE THAT?"
    

Private messaging commands

Commands:pm (target, message)
sh_Commands:pm

Sends a private message to another player.

Parameters:

Client target The player receiving the private message

string message The message to send

Usage:

    1
    2
    3
    4
    /pm Rebel1324 Meet me outside the apartment.
    
    Chat output (Sender): [PM] Chestnut: Meet me outside the apartment.
    Chat output (Receiver): [PM] Chestnut: Meet me outside the apartment.
    

Commands:reply (message)
sh_Commands:reply

Sends a private message to the most recent player who messaged the caller.

Parameters:

string message The message to send

Usage:

    1
    2
    3
    4
    /reply I will be there shortly.
    
    Chat output (Sender): [PM] Rebel1324: I will be there shortly.
    Chat output (Receiver): [PM] Rebel1324: I will be there shortly.
    

Commands:setvoicemail (message)
sh_Commands:setvoicemail

Sets or clears the caller's voicemail message.

Parameters:

string message optional The voicemail message to save; omit it to clear the current message

Usage:

    1
    2
    3
    4
    5
    6
    /setvoicemail Leave a message after the tone.
    
    Chat output: You have set your voicemail.
    /setvoicemail
    
    Chat output: You have removed your voicemail..
    

Out of Character chat

ooc (message)
sh_ooc

Out-of-character global message. The message is perceived as non-rp meta chat. Alternatively '//' also works

Parameters:

string message The message to send

Usage:

    1
    2
    3
    // Is there a skeleton prank happening?
    
    Chat output: [OOC] Chestnut: Is there a skeleton prank happening?
    

looc (message)
sh_looc

Out-of-character local message. The message is perceived as non-rp meta chat. This will only be heard in the character's viscinity. Alternatively './/' and '[[' also works

Parameters:

string message The message to send

Usage:

    1
    2
    3
    .// Dude don't ruin the prank to other players.
    
    Chat output: [LOOC] Rebel1324: Dude don't ruin the prank to other players.
    

Event chat

event (message)
sv_event

Admin Only

This command is available to admins only!

Event chat. Used by admins to make global server announcements.

Parameters:

string message The message to send

Usage:

    1
    2
    3
    /event The skeleton ran away, nobody saw that.
    
    Chat output: The skeleton ran away, nobody saw that.