From fcfdf0417d9853907f754292b62e12ab69de599e Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 16 Mar 2022 21:06:51 -0500 Subject: [PATCH] Add info texts for a lot of commands --- scripts/server/command.js | 152 +++++++++++++++++++------------------- 1 file changed, 78 insertions(+), 74 deletions(-) diff --git a/scripts/server/command.js b/scripts/server/command.js index 93c1f15e..da6d58bd 100644 --- a/scripts/server/command.js +++ b/scripts/server/command.js @@ -202,28 +202,31 @@ function loadCommands() { ], core: [], database: [ - commandData("dbquery", executeDatabaseQueryCommand, "", getStaffFlagValue("Developer"), true, true), + commandData("dbquery", executeDatabaseQueryCommand, "", getStaffFlagValue("Developer"), true, true, "Run a query on the database"), //commandData("dbinfo", getDatabaseInfoCommand, "", getStaffFlagValue("Developer"), true, true), ], developer: [ - commandData("scode", executeServerCodeCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("ccode", executeClientCodeCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("gmx", restartGameModeCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("saveall", saveAllServerDataCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("docmd", simulateCommandForPlayerCommand, " [params]", getStaffFlagValue("Developer"), true, true), - commandData("docmdall", simulateCommandForAllPlayersCommand, " [params]", getStaffFlagValue("Developer"), true, true), - commandData("addloglvl", addLogLevelCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("delloglvl", removeLogLevelCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("loglvl", getLogLevelCommand, "", getStaffFlagValue("Developer"), true, true), + commandData("scode", executeServerCodeCommand, "", getStaffFlagValue("Developer"), true, true, "Execute serverside code"), + commandData("ccode", executeClientCodeCommand, "", getStaffFlagValue("Developer"), true, true, "Execute clientside code for a player"), + commandData("gmx", restartGameModeCommand, "", getStaffFlagValue("Developer"), true, true, "Restart this gamemode"), + commandData("saveall", saveAllServerDataCommand, "", getStaffFlagValue("Developer"), true, true, "Immediately save all data to database"), + commandData("docmd", simulateCommandForPlayerCommand, " [params]", getStaffFlagValue("Developer"), true, true, "Force a player to use a command"), + commandData("docmdall", simulateCommandForAllPlayersCommand, " [params]", getStaffFlagValue("Developer"), true, true, "Force all players to use a command"), + commandData("addloglevel", addLogLevelCommand, "", getStaffFlagValue("Developer"), true, true, "Adds a log level"), + commandData("delloglevel", removeLogLevelCommand, "", getStaffFlagValue("Developer"), true, true, "Removes an active log level"), + commandData("loglevel", getLogLevelCommand, "", getStaffFlagValue("Developer"), true, true, "Gets the current log level"), - commandData("nosave", togglePauseSavingToDatabaseCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("streamurlall", streamAudioURLToAllPlayersCommand, " ", getStaffFlagValue("Developer"), true, true), - commandData("streamnameall", streamAudioNameToAllPlayersCommand, " ", getStaffFlagValue("Developer"), true, true), + commandData("nosave", togglePauseSavingToDatabaseCommand, "", getStaffFlagValue("Developer"), true, true, "Pauses saving to database (used for testing)"), + commandData("streamurlall", streamAudioURLToAllPlayersCommand, " ", getStaffFlagValue("Developer"), true, true, "Plays a URL radio stream for all players"), + commandData("streamnameall", streamAudioNameToAllPlayersCommand, " ", getStaffFlagValue("Developer"), true, true, "Plays an audio file stream for all players"), commandData("forceresetpass", forceAccountPasswordResetCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("fixblips", fixAllServerBlipsCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("fixpickups", fixAllServerPickupsCommand, "", getStaffFlagValue("Developer"), true, true), - commandData("resetambience", resetAllServerAmbienceElementsCommand, "", getStaffFlagValue("ManageWorld"), true, true), + commandData("fixblips", fixAllServerBlipsCommand, "", getStaffFlagValue("Developer"), true, true, "Clears and recreates all map blips"), + commandData("fixpickups", fixAllServerPickupsCommand, "", getStaffFlagValue("Developer"), true, true, "Clears and recreates all pickups"), + commandData("resetambience", resetAllServerAmbienceElementsCommand, "", getStaffFlagValue("ManageWorld"), true, true, "Clears all current server ambience elements (traffic, peds, etc)"), + commandData("testguiprompt", testPromptGUICommand, "", getStaffFlagValue("Developer"), true, true, "Shows a sample prompt GUI (two buttons) to a player for testing"), + commandData("testguiinfo", testInfoGUICommand, "", getStaffFlagValue("Developer"), true, true, "Shows a sample info dialog GUI to a player for testing"), + commandData("testguierror", testErrorGUICommand, "", getStaffFlagValue("Developer"), true, true, "Shows a sample error dialog GUI to a player for testing"), ], discord: [], economy: [ @@ -235,41 +238,41 @@ function loadCommands() { commandData("testemail", testEmailCommand, "", getStaffFlagValue("Developer"), true, true), ], help: [ - commandData("help", helpCommand, "", getStaffFlagValue("None"), false, false), - commandData("commands", helpCommand, "", getStaffFlagValue("None"), false, false), - commandData("cmds", helpCommand, "", getStaffFlagValue("None"), false, false), - commandData("info", helpCommand, "", getStaffFlagValue("None"), false, false), - commandData("veh", helpGetCarCommand, "", getStaffFlagValue("None"), false, false), - commandData("v", helpGetCarCommand, "", getStaffFlagValue("None"), false, false), - commandData("car", helpGetCarCommand, "", getStaffFlagValue("None"), false, false), - commandData("cars", helpGetCarCommand, "", getStaffFlagValue("None"), false, false), - commandData("spawncar", helpGetCarCommand, "", getStaffFlagValue("None"), false, false), - commandData("spawnveh", helpGetCarCommand, "", getStaffFlagValue("None"), false, false), - commandData("skin", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false), - commandData("skins", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false), - commandData("clothes", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false), - //commandData("setskin", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false), - commandData("changeskin", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false), + commandData("help", helpCommand, "", getStaffFlagValue("None"), false, false, "Shows help messages for information"), + commandData("commands", helpCommand, "", getStaffFlagValue("None"), false, false, "Shows help messages for information"), + commandData("cmds", helpCommand, "", getStaffFlagValue("None"), false, false, "Shows help messages for information"), + commandData("info", helpCommand, "", getStaffFlagValue("None"), false, false, "Shows help messages for information"), + commandData("veh", helpGetCarCommand, "", getStaffFlagValue("None"), false, false, "Explains how to get/buy a vehicle"), + commandData("v", helpGetCarCommand, "", getStaffFlagValue("None"), false, false, "Explains how to get/buy a vehicle"), + commandData("car", helpGetCarCommand, "", getStaffFlagValue("None"), false, false), "Explains how to get/buy a vehicle", + commandData("cars", helpGetCarCommand, "", getStaffFlagValue("None"), false, false, "Explains how to get/buy a vehicle"), + commandData("spawncar", helpGetCarCommand, "", getStaffFlagValue("None"), false, false, "Explains how to get/buy a vehicle"), + commandData("spawnveh", helpGetCarCommand, "", getStaffFlagValue("None"), false, false, "Explains how to get/buy a vehicle"), + commandData("skin", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false, "Explains how to change your skin"), + commandData("skins", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false, "Explains how to change your skin"), + commandData("clothes", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false, "Explains how to change your skin"), + //commandData("setskin", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false, "Explains how to change your skin"), + commandData("changeskin", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false, "Explains how to change your skin"), ], house: [ - commandData("addhouse", createHouseCommand, "", getStaffFlagValue("ManageHouses"), true, false), - commandData("delhouse", deleteHouseCommand, "", getStaffFlagValue("ManageHouses"), true, false), - commandData("housereloadall", reloadAllHousesCommand, "", getStaffFlagValue("ManageHouses"), true, false), + commandData("addhouse", createHouseCommand, "", getStaffFlagValue("ManageHouses"), true, false, "Creates a new house"), + commandData("delhouse", deleteHouseCommand, "", getStaffFlagValue("ManageHouses"), true, false, "Deletes a house"), + commandData("housereloadall", reloadAllHousesCommand, "", getStaffFlagValue("ManageHouses"), true, false, "Reloads all houses from the database"), - commandData("houseinfo", getHouseInfoCommand, "", getStaffFlagValue("None"), true, false), - commandData("housebuy", buyHouseCommand, "", getStaffFlagValue("None"), true, false), - commandData("houseclan", setHouseClanCommand, "", getStaffFlagValue("None"), true, false), - commandData("housedesc", setHouseDescriptionCommand, "", getStaffFlagValue("ManageHouses"), true, false), - commandData("houselock", lockUnlockHouseCommand, "", getStaffFlagValue("None"), true, false), - commandData("houselights", toggleHouseInteriorLightsCommand, "", getStaffFlagValue("None"), true, false), - commandData("houseowner", setHouseOwnerCommand, "", getStaffFlagValue("None"), true, false), - commandData("housebuyprice", setHouseBuyPriceCommand, "", getStaffFlagValue("None"), true, false), - commandData("houserentprice", setHouseRentPriceCommand, "", getStaffFlagValue("None"), true, false), - commandData("houseblip", setHouseBlipCommand, "", getStaffFlagValue("ManageHouses"), true, true), - commandData("housepickup", setHousePickupCommand, "", getStaffFlagValue("ManageHouses"), true, true), - commandData("houseentrance", moveHouseEntranceCommand, "", getStaffFlagValue("ManageHouses"), true, true), - commandData("houseexit", moveHouseExitCommand, "", getStaffFlagValue("ManageHouses"), true, true), - commandData("houseinttype", setHouseInteriorTypeCommand, "", getStaffFlagValue("ManageHouses"), true, true), + commandData("houseinfo", getHouseInfoCommand, "", getStaffFlagValue("None"), true, false, "Shows a house's information"), + commandData("housebuy", buyHouseCommand, "", getStaffFlagValue("None"), true, false, "Purchases a house"), + commandData("houseclan", setHouseClanCommand, "", getStaffFlagValue("None"), true, false, "Gives a house to your clan"), + commandData("housedesc", setHouseDescriptionCommand, "", getStaffFlagValue("ManageHouses"), true, false, "Sets a house's description"), + commandData("houselock", lockUnlockHouseCommand, "", getStaffFlagValue("None"), true, false, "Locks/unlocks a house door"), + commandData("houselights", toggleHouseInteriorLightsCommand, "", getStaffFlagValue("None"), true, false, "Turns on and off the lights inside a house"), + commandData("houseowner", setHouseOwnerCommand, "", getStaffFlagValue("None"), true, false, "Gives a house to a player"), + commandData("housebuyprice", setHouseBuyPriceCommand, "", getStaffFlagValue("None"), true, false, "Sets the purchase price of a house so people can buy it"), + commandData("houserentprice", setHouseRentPriceCommand, "", getStaffFlagValue("None"), true, false, "Sets the rent price of a house so people can rent it"), + commandData("houseblip", setHouseBlipCommand, "", getStaffFlagValue("ManageHouses"), true, true, "Changes or removes a house's map icon"), + commandData("housepickup", setHousePickupCommand, "", getStaffFlagValue("ManageHouses"), true, true, "Changes or removes a house's pickup"), + commandData("houseentrance", moveHouseEntranceCommand, "", getStaffFlagValue("ManageHouses"), true, true, "Moves a house's entrance (outside/exterior location to enter the house)"), + commandData("houseexit", moveHouseExitCommand, "", getStaffFlagValue("ManageHouses"), true, true, "Moves a house's exit (inside/interior location to exit the house)"), + commandData("houseinttype", setHouseInteriorTypeCommand, "", getStaffFlagValue("ManageHouses"), true, true, "Sets a house's interior to a pre-defined type"), ], item: [ commandData("i", playerSwitchHotBarSlotCommand, "", getStaffFlagValue("None"), true, false, "Switches to the item in the specified slot of your inventory."), @@ -291,43 +294,44 @@ function loadCommands() { 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), + commandData("power", toggleItemEnabledCommand, "", getStaffFlagValue("None"), true, false, "Turns on or off an item"), + commandData("freq", setWalkieTalkieFrequencyCommand, "[frequncy number]", getStaffFlagValue("None"), true, false, "Sets a radio item's frequency"), //commandData("call", callWithPhoneCommand, "[number]", getStaffFlagValue("None"), true, false), //commandData("speakerphone", togglePhoneSpeakerCommand, "", getStaffFlagValue("None"), true, false), - commandData("radio", walkieTalkieChatCommand, "", getStaffFlagValue("None"), true, false), - commandData("r", walkieTalkieChatCommand, "", getStaffFlagValue("None"), true, false), + commandData("radio", walkieTalkieChatCommand, "", getStaffFlagValue("None"), true, false, "Chat over a radio item (item must be able to transmit)"), + commandData("r", walkieTalkieChatCommand, "", getStaffFlagValue("None"), true, false, "Chat over a radio item (item must be able to transmit)"), - commandData("additemtype", createItemTypeCommand, "", getStaffFlagValue("ManageItems"), true, false), - commandData("itemtypeusetype", setItemTypeUseTypeCommand, " ", getStaffFlagValue("ManageItems"), true, false), - commandData("itemtypeuseval", setItemTypeUseValueCommand, " ", getStaffFlagValue("ManageItems"), true, false), - commandData("itemtypeorderprice", setItemTypeOrderPriceCommand, " ", getStaffFlagValue("ManageItems"), true, false), - commandData("itemtyperiskmult", setItemTypeRiskMultiplierCommand, " ", getStaffFlagValue("ManageItems"), true, false), - commandData("itemtypeenabled", toggleItemTypeEnabledCommand, "", getStaffFlagValue("ManageItems"), true, false), + commandData("additemtype", createItemTypeCommand, "", getStaffFlagValue("ManageItems"), true, false, "Adds a new item type"), + commandData("itemtypeusetype", setItemTypeUseTypeCommand, " ", getStaffFlagValue("ManageItems"), true, false, "Sets an item type's use-type (what kind of action is performed when using it)"), + commandData("itemtypeuseval", setItemTypeUseValueCommand, " ", getStaffFlagValue("ManageItems"), true, false, "Sets an item type's use-value (how much gets subtracted when using it)"), + commandData("itemtypeorderprice", setItemTypeOrderPriceCommand, " ", getStaffFlagValue("ManageItems"), true, false, "Sets an item type's order price (base price when ordering for a business"), + commandData("itemtyperiskmult", setItemTypeRiskMultiplierCommand, " ", getStaffFlagValue("ManageItems"), true, false, "Sets an item type's risk multiplayer (higher value for more dangerous or rare illegal items)"), + commandData("itemtypeenabled", toggleItemTypeEnabledCommand, "", getStaffFlagValue("ManageItems"), true, false, "Toggles an item type on or off (if off, any items with that type can't be interacted with)"), - commandData("delplritem", deleteItemInPlayerInventoryCommand, " ", getStaffFlagValue("ManageItems"), true, false), - commandData("delplritems", deleteAllItemsInPlayerInventoryCommand, "", getStaffFlagValue("ManageItems"), true, false), + commandData("delplritem", deleteItemInPlayerInventoryCommand, " ", getStaffFlagValue("ManageItems"), true, false, "Removes an item by slot from a player's personal inventory"), + commandData("delplritems", deleteAllItemsInPlayerInventoryCommand, "", getStaffFlagValue("ManageItems"), true, false, "Removes all items from a player's personal inventory"), ], job: [ - commandData("takejob", takeJobCommand, "", getStaffFlagValue("None"), true, false), - commandData("startwork", startWorkingCommand, "", getStaffFlagValue("None"), true, false), - commandData("stopwork", stopWorkingCommand, "", getStaffFlagValue("None"), true, false), - commandData("startjob", startWorkingCommand, "", getStaffFlagValue("None"), true, false), - commandData("stopjob", stopWorkingCommand, "", getStaffFlagValue("None"), true, false), - commandData("quitjob", quitJobCommand, "", getStaffFlagValue("None"), true, false), - commandData("uniform", jobUniformCommand, "[uniform]", getStaffFlagValue("None"), true, false), - commandData("equip", jobEquipmentCommand, "[equipment]", getStaffFlagValue("None"), true, false), + commandData("takejob", takeJobCommand, "", getStaffFlagValue("None"), true, false, "Gives you the job"), + commandData("startwork", startWorkingCommand, "", getStaffFlagValue("None"), true, false, "Start working at your job (use at a job location or near a job vehicle)"), + commandData("stopwork", stopWorkingCommand, "", getStaffFlagValue("None"), true, false, "Stop working at your job"), + commandData("startjob", startWorkingCommand, "", getStaffFlagValue("None"), true, false, "Start working at your job (use at a job location or near a job vehicle)"), + commandData("stopjob", stopWorkingCommand, "", getStaffFlagValue("None"), true, false, "Stop working at your job"), + commandData("quitjob", quitJobCommand, "", getStaffFlagValue("None"), true, false, "Leave your job and be unemployed"), + commandData("uniform", jobUniformCommand, "[uniform]", getStaffFlagValue("None"), true, false, "Use a job uniform"), + commandData("equip", jobEquipmentCommand, "[equipment]", getStaffFlagValue("None"), true, false, "Get equipment for your job"), - commandData("department", jobDepartmentRadioCommand, "", getStaffFlagValue("None"), true, false), - commandData("d", jobDepartmentRadioCommand, "", getStaffFlagValue("None"), true, false), + // Emergency Services (Police, Fire, EMS, etc) + commandData("department", jobDepartmentRadioCommand, "", getStaffFlagValue("None"), true, false, "Communicate with all emergency services (radio must be on and able to transmit)"), + commandData("d", jobDepartmentRadioCommand, "", getStaffFlagValue("None"), true, false, "Communicate with all emergency services (radio must be on and able to transmit)"), // Taxi - commandData("fare", taxiSetFareCommand, "", getStaffFlagValue("None"), true, false), + commandData("fare", taxiSetFareCommand, "", getStaffFlagValue("None"), true, false, "Sets the fare for passengers in your taxi (amount is charged every 10 seconds)"), // Police - commandData("detain", policeDetainCommand, "", getStaffFlagValue("None"), true, false), - commandData("drag", policeDragCommand, "", getStaffFlagValue("None"), true, false), - commandData("search", policeSearchCommand, "", getStaffFlagValue("None"), true, false), + commandData("detain", policeDetainCommand, "", getStaffFlagValue("None"), true, false, "Puts a handcuffed person in the back of your police vehicle"), + commandData("drag", policeDragCommand, "", getStaffFlagValue("None"), true, false, "Drags a handcuffed person around"), + commandData("search", policeSearchCommand, "", getStaffFlagValue("None"), true, false, "Searches a person"), // Routes commandData("startroute", jobStartRouteCommand, "", getStaffFlagValue("None"), true, false),