From 1ddfe7abcb5c9d471a37aa4fc5c986147e1c8870 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 7 Mar 2021 14:13:21 -0600 Subject: [PATCH] Add bunch of cmds --- scripts/server/command.js | 69 +++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 32 deletions(-) diff --git a/scripts/server/command.js b/scripts/server/command.js index 09720177..c16340c8 100644 --- a/scripts/server/command.js +++ b/scripts/server/command.js @@ -44,7 +44,8 @@ function loadCommands() { commandData("autolastchar", autoSelectLastCharacterCommand, "", getStaffFlagValue("none"), true, false, "Toggle whether to automatically spawn with the last character you played as"), commandData("gui", toggleAccountGUICommand, "", getStaffFlagValue("none"), false, false, "Toggle whether to use GUI. If GUI is disabled on the server, it won't show even if you have GUI enabled."), commandData("2fa", toggleAccountTwoFactorAuthCommand, "", getStaffFlagValue("none"), true, false, "Set up and use two-factor authentication."), - commandData("setemail", setAccountEmailCommand, "", getStaffFlagValue("none"), true, false, "Sets your email. To reset your password, you must have a valid email set to your account."), + commandData("setemail", setAccountEmailCommand, "", getStaffFlagValue("none"), true, false, "Sets your email. To reset your password, you must have a valid email set and verified."), + commandData("verifyemail", verifyAccountEmailCommand, "", getStaffFlagValue("none"), true, false, "Confirms/verifies your email."), commandData("setdiscord", setAccountDiscordCommand, "", getStaffFlagValue("none"), true, false, "Set up the integration for discord. Allows you to see info and use in-game commands on discord."), ], ammunation: [], @@ -86,7 +87,7 @@ function loadCommands() { commandData("bizitemprice", setBusinessItemSellPriceCommand, " ", getStaffFlagValue("none"), true, true, "Sets the purchase price of a business item"), commandData("bizname", setBusinessNameCommand, "", getStaffFlagValue("none"), true, true, "Changes a business name"), commandData("bizowner", setBusinessOwnerCommand, "", getStaffFlagValue("none"), true, true, "Changes the owner of a business"), - //commandData("bizbuyprice", setBusinessBuyPriceCommand, "", getStaffFlagValue("none"), true, true, "Changes the owner of a business"), + commandData("bizbuyprice", setBusinessBuyPriceCommand, "", getStaffFlagValue("none"), true, true, "Changes the owner of a business"), commandData("bizblip", setBusinessBlipCommand, "", getStaffFlagValue("manageBusinesses"), true, true, "Sets the business blip display"), commandData("bizpickup", setBusinessPickupCommand, "", getStaffFlagValue("manageBusinesses"), true, true, "Sets the business pickup display"), commandData("bizinfo", getBusinessInfoCommand, "[id]", getStaffFlagValue("none"), true, true, "Shows business information"), @@ -130,23 +131,26 @@ function loadCommands() { client: [], colour: [], command: [ - commandData("cmdenabletype", enableAllCommandsByType, "", getStaffFlagValue("developer"), true, true), - commandData("cmddisabletype", disableAllCommandsByType, "", getStaffFlagValue("developer"), true, true), - commandData("cmdenable", enableCommand, "", getStaffFlagValue("developer"), true, true), - commandData("cmddisable", disableCommand, "", getStaffFlagValue("developer"), true, true), + commandData("cmdenabletype", enableAllCommandsByType, "", getStaffFlagValue("developer"), true, true, "Enables all commands by type."), + commandData("cmddisabletype", disableAllCommandsByType, "", getStaffFlagValue("developer"), true, true, "Disables all commands by type."), + commandData("cmdenable", enableCommand, "", getStaffFlagValue("developer"), true, true, "Enable a specific command"), + commandData("cmddisable", disableCommand, "", getStaffFlagValue("developer"), true, true, "Disables a specific command"), ], config: [ - commandData("settime", setTimeCommand, " [minute]", getStaffFlagValue("manageServer"), true, true), - commandData("setweather", setWeatherCommand, "", getStaffFlagValue("manageServer"), true, true), - commandData("setsnow", setSnowingCommand, " ", getStaffFlagValue("manageServer"), true, true), - commandData("setlogo", toggleServerLogoCommand, "<0/1 state>", getStaffFlagValue("manageServer"), true, true), - commandData("setgui", toggleServerGUICommand, "<0/1 state>", getStaffFlagValue("manageServer"), true, true), + commandData("settime", setTimeCommand, " [minute]", getStaffFlagValue("manageServer"), true, true, "Set the time. Hours are required, minute is optional and will default to 0"), + commandData("setweather", setWeatherCommand, "", getStaffFlagValue("manageServer"), true, true, "Change the weather to specified type."), + commandData("setsnow", setSnowingCommand, " ", getStaffFlagValue("manageServer"), true, true, "Toggles winter/snow"), + commandData("setlogo", toggleServerLogoCommand, "<0/1 state>", getStaffFlagValue("manageServer"), true, true, "Toggles the corner server logo display on/off"), + commandData("setgui", toggleServerGUICommand, "<0/1 state>", getStaffFlagValue("manageServer"), true, true, "Toggles server GUI on/off"), //commandData("setguicolours", setServerGUIColoursCommand, " ", getStaffFlagValue("manageServer"), true, true), - commandData("newcharspawn", setNewCharacterSpawnPositionCommand, "", getStaffFlagValue("manageServer"), true, true), - commandData("newcharcash", setNewCharacterMoneyCommand, "", getStaffFlagValue("manageServer"), true, true), - commandData("newcharskin", setNewCharacterSkinCommand, "[skin id]", getStaffFlagValue("manageServer"), true, true), - commandData("jobinfo", getJobInfoCommand, "", getStaffFlagValue("none"), true, true), - commandData("joblocinfo", getJobLocationInfoCommand, "", getStaffFlagValue("none"), true, true), + commandData("newcharspawn", setNewCharacterSpawnPositionCommand, "", getStaffFlagValue("manageServer"), true, true, "Sets the starting spawn position for new characters"), + commandData("newcharcash", setNewCharacterMoneyCommand, "", getStaffFlagValue("manageServer"), true, true, "Sets the starting money for new characters"), + commandData("newcharskin", setNewCharacterSkinCommand, "[skin id]", getStaffFlagValue("manageServer"), true, true, "Sets the default skin for new characters"), + commandData("jobinfo", getJobInfoCommand, "", getStaffFlagValue("none"), true, true, "Get info for nearest or specified job"), + commandData("joblocinfo", getJobLocationInfoCommand, "", getStaffFlagValue("none"), true, true, "Get info for nearest or specified job location"), + commandData("reloadcfg", reloadServerConfigurationCommand, "", getStaffFlagValue("manageServer"), true, true, "Loads and applies the server configuration"), + commandData("reloademailcfg", reloadEmailConfigurationCommand, "", getStaffFlagValue("developer"), true, true, "Loads and applies the email configuration"), + commandData("reloaddbcfg", reloadDatabaseConfigurationCommand, "", getStaffFlagValue("developer"), true, true, "Loads and applies the database configuration"), ], core: [], database: [ @@ -190,21 +194,22 @@ function loadCommands() { commandData("houseinttype", setHouseInteriorTypeCommand, "", getStaffFlagValue("manageHouses"), true, true), ], item: [ - commandData("i", playerSwitchHotBarSlotCommand, "", getStaffFlagValue("none"), true, false), - commandData("addgrounditem", createGroundItemCommand, "", getStaffFlagValue("manageItems"), true, false), - commandData("delgrounditem", deleteGroundItemCommand, "", getStaffFlagValue("manageItems"), true, false), - commandData("pickup", pickupItemCommand, "", getStaffFlagValue("none"), true, false), - commandData("drop", dropItemCommand, "[slot]", getStaffFlagValue("none"), true, false), - commandData("put", putItemCommand, "[slot]", getStaffFlagValue("none"), true, false), - commandData("take", takeItemCommand, "[slot]", getStaffFlagValue("none"), true, false), - commandData("use", useItemCommand, "[slot]", getStaffFlagValue("none"), true, false), - commandData("inv", listPlayerInventoryCommand, "", getStaffFlagValue("none"), true, false), - commandData("inventory", listPlayerInventoryCommand, "", getStaffFlagValue("none"), true, false), + commandData("i", playerSwitchHotBarSlotCommand, "", getStaffFlagValue("none"), true, false, "Switches to the item in the specified slot of your inventory."), + commandData("addgrounditem", createGroundItemCommand, "", getStaffFlagValue("manageItems"), true, false, "Spawns a new item on the ground at your position."), + commandData("delgrounditem", deleteGroundItemCommand, "", getStaffFlagValue("manageItems"), true, false, "Destroys the nearest item on the ground."), + commandData("pickup", pickupItemCommand, "", getStaffFlagValue("none"), true, false, "Picks up the nearest item."), + commandData("drop", dropItemCommand, "[slot]", getStaffFlagValue("none"), true, false, "Drops your currently equipped item or the item in the specified slot"), + commandData("put", putItemCommand, "[slot]", getStaffFlagValue("none"), true, false, "Puts an item from your inventory into the nearest item place (vehicle trunk/dash, house, business, etc)"), + commandData("take", takeItemCommand, "[slot]", getStaffFlagValue("none"), true, false, "Takes an item from the nearest item place (vehicle trunk, dash, house, business, etc)"), + commandData("use", useItemCommand, "", getStaffFlagValue("none"), true, false, "Uses the currently equipped item"), + commandData("inv", listPlayerInventoryCommand, "", getStaffFlagValue("none"), true, false, "Shows the items in your inventory"), + commandData("inventory", listPlayerInventoryCommand, "", getStaffFlagValue("none"), true, false, "Shows the items in your inventory"), - commandData("items", listItemInventoryCommand, "", getStaffFlagValue("none"), true, false), - commandData("houseitems", listHouseInventoryCommand, "", getStaffFlagValue("none"), true, false), - commandData("bizstorage", listBusinessStorageInventoryCommand, "", getStaffFlagValue("none"), true, false), - commandData("bizfloor", listBusinessFloorInventoryCommand, "", getStaffFlagValue("none"), true, false), + commandData("items", listItemInventoryCommand, "", getStaffFlagValue("none"), true, false, "Shows the items in your inventory"), + commandData("houseitems", listHouseInventoryCommand, "", getStaffFlagValue("none"), true, false, "Shows the items in the house's storage"), + commandData("bizstorage", listBusinessStorageInventoryCommand, "", getStaffFlagValue("none"), true, false, "Shows the items in the business's extra storage (not buyable)"), + commandData("bizfloor", listBusinessFloorInventoryCommand, "", getStaffFlagValue("none"), true, false, "Shows the items that can be bought from the business"), + commandData("buylist", listBusinessFloorInventoryCommand, "", getStaffFlagValue("none"), true, false, "Shows the items that can be bought from the business"), commandData("power", toggleItemEnabledCommand, "", getStaffFlagValue("none"), true, false), commandData("freq", setWalkieTalkieFrequencyCommand, "[frequncy number]", getStaffFlagValue("none"), true, false), @@ -230,8 +235,8 @@ function loadCommands() { commandData("fare", taxiSetFareCommand, "", getStaffFlagValue("none"), true, false), // Police - commandData("tazer", policeTazerCommand, "", getStaffFlagValue("none"), true, false), - commandData("cuff", policeCuffCommand, "", getStaffFlagValue("none"), true, false), + //commandData("tazer", policeTazerCommand, "", getStaffFlagValue("none"), true, false), + //commandData("cuff", policeCuffCommand, "", getStaffFlagValue("none"), true, false), commandData("detain", policeDetainCommand, "", getStaffFlagValue("none"), true, false), commandData("drag", policeDragCommand, "", getStaffFlagValue("none"), true, false), commandData("search", policeSearchCommand, "", getStaffFlagValue("none"), true, false),