JGS Docs
  • 👋Welcome!
  • 📚Resources Docs
    • 💭JGS Dynamic Chat
      • ⚠️Dependencies
      • 🔧Installation
      • 🗃️Exports
      • ⚙️Configuration
        • Configs
        • Discord Logs
        • Templates
        • Suggestions
        • Clipboard
        • Config JS
    • 💬JGS Samp Chat
      • ⚠️Dependencies
      • 🔧Installation
      • ⚙️Configuration
    • 🍔JGS Modern HUD
      • ⚠️Dependencies
      • 🔧Installation
      • 🗃️Exports & Commands
      • ⚙️Configuration
Powered by GitBook
On this page

Was this helpful?

  1. Resources Docs
  2. JGS Dynamic Chat
  3. Configuration

Suggestions

Preview of the configurable file of the package.

shared/suggestions.lua
Config.SuggestionsToAdd = {
	{
		name = '/' .. Config.RoleplayCommands['me'].Command,
		help = 'Send an action message.',
		params = {
			{ name = 'message', help = 'The action message.' }
		}
	},
	{
		name = '/' .. Config.RoleplayCommands['do'].Command,
		help = 'Send a description message.',
		params = {
			{ name = 'message', help = 'The description message.' }
		},
	},
	{
		name = '/' .. Config.RoleplayCommands['oop'].Command,
		help = 'Send an out-of-character message.',
		params = {
			{ name = 'message', help = 'The out-of-character message.' }
		},
	},
	{
		name = '/' .. Config.AdminSystem.Commands.Service,
		help = 'Toggle admin duty status.',
	},
	{
		name = '/' .. Config.AdminSystem.Commands.Chat,
		help = 'Admin duty communication channel.',
		params = {
			{ name = 'message', help = 'The message' }
		}
	},
	{
		name = '/' .. Config.RoleplayCommands['me'].PrivateCommand,
		help = 'Send a /me message to a player.',
		params = {
			{ name = 'id', help = 'Player ID' },
			{ name = 'message', help = 'The message' }
		}
	},
	{
		name = '/' .. Config.RoleplayCommands['do'].PrivateCommand,
		help = 'Send a /do message to a player.',
		params = {
			{ name = 'id', help = 'Player ID' },
			{ name = 'message', help = 'The message' }
		}
	},
	{
		name = '/' .. Config.RadioCommands.Commands['radio'],
		help = 'Radio communication between factions.',
		params = {
			{ name = 'message', help = 'The message' }
		}
	},
	{
		name = '/' .. Config.RadioCommands.Commands['police-sheriff'],
		help = 'Radio communication between Police and Sheriff.',
		params = {
			{ name = 'message', help = 'The message' }
		}
	},
	{
		name = '/' .. Config.RadioCommands.Commands['police-sheriff-ambulance'],
		help = 'Radio communication between Police, Sheriff, and EMS.',
		params = {
			{ name = 'message', help = 'The message' }
		}
	},
	{
		name = '/' .. Config.RoleplayCommands['msg'].Command,
		help = 'Send a private message to a player.',
		params = {
			{ name = 'id', help = 'Player ID' },
			{ name = 'message', help = 'The message' }
		}
	},
	{
		name = '/' .. Config.Styles.Commands.Change,
		help = 'Change the style of JGS Chat.',
		params = {
			{ name = ('%s'):format(unp2(Config.Styles.Types, 'key')) }
		}
	},
	{
		name = '/' .. Config.Styles.Commands.Add,
		help = 'Add a message style.',
		params = {
			{ name = 'name', help = 'Name of the style' },
			{ name = 'url', help = 'Style URL' }
		}
	},
	{
		name = '/' .. Config.Styles.Commands.Template,
		help = 'Copy the chat template to modify.',
	},
	{
		name = '/' .. Config.RoleplayCommands['requestid'].Command,
		help = 'Request a player’s ID.',
		params = {
			{ name = 'player', help = 'The name of the requested player.'}
		}
	},
	{
		name = '/' .. Config.RandomSystem.Commands.Dices,
		help = 'Roll the dice (1-6).',
	},
	{
		name = '/' .. Config.RandomSystem.Commands.Try,
		help = 'Attempt something with this command.',
	},
	{
		name = '/' .. Config.RoleplayCommands['tweet'].Command,
		help = 'Send a tweet message.',
		params = {
			{ name = 'message', help = 'The tweet message' }
		}
	},
	{
		name = '/' .. Config.RoleplayCommands['anontweet'].Command,
		help = 'Send an anonymous tweet message.',
		params = {
			{ name = 'message', help = 'The tweet message' }
		}
	},
	{
		name = '/setjob',
		help = 'Change a player’s job.',
		params = {
			{ name = 'id', help = 'Player ID' },
			{ name = 'job', help = 'Job name' },
			{ name = 'grade', help = 'Job grade' },
		}
	},
	{
		name = '/giveitem',
		help = 'Give items to a player.',
		params = {
			{ name = 'id', help = 'Player ID' },
			{ name = 'item', help = 'Item name' },
			{ name = 'amount', help = 'Item quantity' },
		}
	},
	{
		name = '/setgroup',
		help = 'Change a player’s group.',
		params = {
			{ name = 'id', help = 'Player ID' },
			{ name = 'group', help = 'Group name' }
		}
	},
	{
		name = '/dv',
		help = 'Delete vehicle.',
		params = {
			{ name = 'radius', help = 'Deletion radius.'}
		}
	},
	{
		name = '/clear',
		help = 'Clear the chat.',
	},
	{
		name = '/cls',
		help = 'Clear the chat.',
	},
	{
		name = '/clearall',
		help = 'Clear the chat for the entire server.',
	},
	{
		name = '/car',
		help = 'Spawn a vehicle.',
		params = {
			{ name = 'vehicle', help = 'Vehicle hash.'}
		}
	},
	{
		name = '/fix',
		help = 'Fix the vehicle.',
		params = {
			{ name = 'id', help = 'Player ID.'}
		}
	},
	{
		name = '/revive',
		help = 'Revive a player.',
		params = {
			{ name = 'id', help = 'Player ID.'}
		}
	},
}

Config.CommandsToRemoveInSuggestions = {
	Config.EmergencyAlert.AlertCommand, 
	Config.SystemCommands.Info, 
	Config.SystemCommands.Error, 
	Config.Chat.Command, 
	--'clear',
	--'cls',
}
PreviousTemplatesNextClipboard

Last updated 9 days ago

Was this helpful?

📚
💭
⚙️