Commands
NutScript Command Documentation.
Built-in and bundled-plugin commands registered through nut.command.add.
Commands are executed server-side by a player and receive the issuing player plus parsed command arguments.
See also: Command library
Roleplay commands
roll (maximum)
sh_roll
Rolls a random number and broadcasts the result through the roll chat class.
Parameters:
integer maximumoptional. default: 100
The highest possible roll, capped at 100
Usage:
fallover (time)
sh_fallover
Ragdolls the caller for a specified duration.
Parameters:
number timeoptional. default: 5
The ragdoll duration in seconds, clamped between 1 and 60; use a non-positive value for no duration
Usage:
chargetup ()
sh_chargetup
Lets the caller stand up from their ragdoll after its grace period.
Usage:
Roleplay act commands
actsit (type)
sh_actsit
Character plays a sitting animation. This animation loops until interrupted.
Valid model types: citizen_male, citizen_female
Parameters:
integer typeoptional. default: 1
Sequence type. Up to 3
Usage:
actsitwall (type)
sh_actsitwall
Character plays a sitting animation against a wall. This animation loops until interrupted. Requires the character to have a wall against their back.
Valid model types: citizen_male, citizen_female
Parameters:
integer typeoptional. default: 1
Sequence type. Up to 3
Usage:
actinjured (type)
sh_actinjured
Character plays an injured lying animation. This animation loops until interrupted.
Valid model types: citizen_male, citizen_female
Parameters:
integer typeoptional. default: 1
Sequence type. Up to 3
Usage:
actarrest ()
sh_actarrest
Character plays an arrested animation. This animation loops until interrupted. Requires the character to face a wall.
Valid model types: citizen_male
Usage:
actcheer (type)
sh_actcheer
Character plays a cheering animation.
Valid model types: citizen_male, citizen_female
Parameters:
integer typeoptional. default: 1
Sequence type. Up to 3
Usage:
acthere (type)
sh_acthere
Character plays a beconing animation.
Valid model types: citizen_male, citizen_female
Parameters:
integer typeoptional. default: 1
Sequence type. Up to 2
Usage:
actstand (type)
sh_actstand
Character plays a sitting animation. This animation loops until interrupted.
Valid model types: citizen_male, citizen_female, metrocop
Parameters:
integer typeoptional. default: 1
Sequence type. Up to 4
Usage:
Character commands
chardesc (description)
sh_chardesc
Changes the caller's character description.
Parameters:
string descriptionoptional
The new character description; omit it to open a description prompt
Usage:
charsetmodel (target, model)
sv_charsetmodel
Admin Only
This command is available to admins only!
Changes the model of a target player's character.
Parameters:
Client target The player whose character model to changestring model The model path to assign
Usage:
charsetskin (target, skin)
sv_charsetskin
Admin Only
This command is available to admins only!
Changes the skin of a target player's character model.
Parameters:
Client target The player whose character skin is changedinteger skin The model skin index to assign
Usage:
charsetbodygroup (target, bodygroup, value)
sv_charsetbodygroup
Admin Only
This command is available to admins only!
Changes or clears a named bodygroup on a target player's character.
Parameters:
Client target The player whose bodygroup is changedstring bodygroup The name of the bodygroup to change
integer
value
optional
The bodygroup value; values below 1 clear the stored value
Usage:
charsetname (target, newName)
sv_charsetname
Admin Only
This command is available to admins only!
Changes a target player's character name.
Parameters:
Client target The player whose character name is changedstring
newName
optional
The new character name; omit it to open a name prompt
Usage:
charkick (target)
sv_charkick
Admin Only
This command is available to admins only!
Kicks a target player's currently loaded character.
Parameters:
Client target The player whose character is kickedUsage:
charban (target)
sv_charban
Admin Only
This command is available to admins only!
Bans a target player's currently loaded character.
Parameters:
Client target The player whose character is bannedUsage:
charunban (name)
sv_charunban
Admin Only
This command is available to admins only!
Removes a character ban by character name.
Parameters:
string name The name or partial name of the character to unbanUsage:
Character permissions commands
flaggive (target, flags)
sv_flaggive
Admin Only
This command is available to admins only!
Gives character flags to a target player.
Parameters:
Client target The player whose character receives the flagsstring
flags
optional
The flags to give; omit them to open a selection prompt
Usage:
flagtake (target, flags)
sv_flagtake
Admin Only
This command is available to admins only!
Removes character flags from a target player.
Parameters:
Client target The player whose character loses the flagsstring
flags
optional
The flags to remove; omit them to open a selection prompt
Usage:
plywhitelist (target, faction)
sv_plywhitelist
Admin Only
This command is available to admins only!
Whitelists a player for a faction.
Parameters:
Client target The player to whitelistFaction faction The faction to whitelist the player for
Usage:
plyunwhitelist (target, faction)
sv_plyunwhitelist
Admin Only
This command is available to admins only!
Removes a player's whitelist for a faction.
Parameters:
Client target The player to remove from the faction whitelistFaction faction The faction to remove
Usage:
Faction and class commands
plytransfer (target, faction)
sv_plytransfer
Admin Only
This command is available to admins only!
Transfers a target player's character to another faction.
Parameters:
Client target The player whose character is transferredFaction faction The destination faction
Usage:
charsetfaction (target, faction)
sv_charsetfaction
Admin Only
This command is available to admins only!
Alias of plytransfer that transfers a target character to another faction.
Parameters:
Client target The player whose character is transferredFaction faction The destination faction
Usage:
beclass (class)
sh_beclass
Attempts to change the caller's character to a class.
Parameters:
vararg class The class ID, unique ID, or localized nameUsage:
Inventory commands
chargiveitem (target, item, amount)
sv_chargiveitem
Admin Only
This command is available to admins only!
Adds an item to a target player's character inventory.
Parameters:
Client target The player whose inventory receives the itemstring item The item unique ID or matching item name
integer
amount
optional. default: 1
The number of items to add
Usage:
clearinv (target)
sv_clearinv
Admin Only
This command is available to admins only!
Removes every item from a target player's character inventory.
Parameters:
Client target The player whose inventory is clearedUsage:
Economy commands
givemoney (amount)
sh_givemoney
Gives money to the player directly in front of the caller.
Parameters:
number amount The amount of money to giveUsage:
charsetmoney (target, amount)
sv_charsetmoney
Admin Only
This command is available to admins only!
Sets a target player's character money balance.
Parameters:
Client target The player whose money is changednumber amount The non-negative money amount to set
Usage:
dropmoney (amount)
sh_dropmoney
Drops money from the caller as a physical money entity.
Parameters:
number amount The amount of money to dropUsage:
3D panel commands
paneladd (url, w, h, scale)
sv_paneladd
Admin Only
This command is available to admins only!
Plugin function
This is defined and used within the 3DPanel plugin. As such, its functionality might differ in different schemas, or be unavailable.
Adds a 3D web panel at the position the admin is looking at. The panel faces the surface hit by the admin's eye trace.
Parameters:
string url The URL displayed by the panelnumber
w
optional
The panel width
number
h
optional
The panel height
number
scale
optional
The panel display scale
Usage:
panelremove (radius)
sv_panelremove
Admin Only
This command is available to admins only!
Plugin function
This is defined and used within the 3DPanel plugin. As such, its functionality might differ in different schemas, or be unavailable.
Removes 3D panels near the position the admin is looking at.
Parameters:
number radiusoptional
The radius around the aimed position in which to remove panels
Usage:
3D text commands
textadd (text, scale)
sv_textadd
Admin Only
This command is available to admins only!
Plugin function
This is defined and used within the 3DText plugin. As such, its functionality might differ in different schemas, or be unavailable.
Adds 3D text at the surface the admin is looking at. The text faces the surface hit by the admin's eye trace.
Parameters:
string text The text to displaynumber
scale
optional
The display scale of the text
Usage:
textremove (radius)
sv_textremove
Admin Only
This command is available to admins only!
Plugin function
This is defined and used within the 3DText plugin. As such, its functionality might differ in different schemas, or be unavailable.
Removes 3D text near the surface the admin is looking at.
Parameters:
number radiusoptional
The radius around the aimed position in which to remove text
Usage:
Map scene commands
mapsceneadd (isPair)
sv_mapsceneadd
Admin Only
This command is available to admins only!
Plugin function
This is defined and used within the MapScene plugin. As such, its functionality might differ in different schemas, or be unavailable.
Adds a static or paired map scene at the admin's current position and viewing angles.
Run the command once with true to save the first endpoint of a moving paired scene, then run it again to create the scene using the admin's current position and angles as the second endpoint.
Parameters:
boolean isPairoptional
Whether to begin a paired moving scene
Usage:
mapsceneremove (radius)
sv_mapsceneremove
Admin Only
This command is available to admins only!
Plugin function
This is defined and used within the MapScene plugin. As such, its functionality might differ in different schemas, or be unavailable.
Removes map scenes near the admin's current position.
Parameters:
number radiusoptional. default: 280
The radius around the admin in which to remove map scenes