From d214eae5a42a1228919618cece7f61d072d35cd6 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 21 Jan 2022 20:31:52 -0600 Subject: [PATCH] Add job route admin cmds --- scripts/server/command.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/scripts/server/command.js b/scripts/server/command.js index a5c20ba0..e8e3f41b 100644 --- a/scripts/server/command.js +++ b/scripts/server/command.js @@ -252,7 +252,7 @@ function loadCommands() { 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("setskin", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false), commandData("changeskin", helpGetSkinCommand, "", getStaffFlagValue("None"), false, false), ], house: [ @@ -338,8 +338,21 @@ function loadCommands() { commandData("stoproute", jobStopRouteCommand, "", getStaffFlagValue("None"), true, false), // Admin Job Stuff + commandData("addjob", createJobCommand, "", getStaffFlagValue("ManageJobs"), true, false), commandData("addjobloc", createJobLocationCommand, "", getStaffFlagValue("ManageJobs"), true, false), commandData("deljobloc", deleteJobLocationCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("addjobroute", createJobRouteCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("addjobrouteloc", createJobRouteLocationCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("deljobroute", deleteJobRouteCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("deljobrouteloc", deleteJobRouteLocationCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("jobroutename", setJobRouteNameCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("jobroutepay", setJobRoutePayCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("jobroutestartmsg", setJobRouteStartMessageCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("jobroutefinishmsg", setJobRouteFinishMessageCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("jobroutearrivemsg", setJobRouteLocationArriveMessageCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("jobroutenextmsg", setJobRouteLocationNextMessageCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("jobrouteenabled", toggleJobRouteEnabledCommand, "", getStaffFlagValue("ManageJobs"), true, false), + commandData("jobroutevehcolours", setJobRouteVehicleColoursCommand, " ", getStaffFlagValue("ManageJobs"), true, false), commandData("jobwhitelist", toggleJobWhiteListCommand, "[job id]", getStaffFlagValue("ManageJobs"), true, false), commandData("jobblacklist", toggleJobBlackListCommand, "[job id]", getStaffFlagValue("ManageJobs"), true, false), commandData("jobtoggle", toggleJobEnabledCommand, "[job id]", getStaffFlagValue("ManageJobs"), true, false), @@ -357,7 +370,9 @@ function loadCommands() { commandData("unbindkey", removeKeyBindCommand, "", getStaffFlagValue("None"), true, false, "Removes an existing keybind from your account"), commandData("keybinds", showKeyBindListCommand, "", getStaffFlagValue("None"), true, false, "Shows a list of all your current keybinds"), ], - locale: [], + locale: [ + commandData("lang", setLocaleCommand, "", getStaffFlagValue("None"), true, false, "Sets your language"), + ], messaging: [], misc: [ commandData("pos", getPositionCommand, "", getStaffFlagValue("BasicModeration"), true, false, "Shows your current coordinates"), @@ -386,6 +401,7 @@ function loadCommands() { commandData("goto", gotoPlayerCommand, "", getStaffFlagValue("BasicModeration"), true, true, "Teleports you to a player."), commandData("gethere", getPlayerCommand, "", getStaffFlagValue("BasicModeration"), true, true, "Teleports a player to you."), commandData("getveh", getVehicleCommand, "", getStaffFlagValue("BasicModeration"), true, true, "Teleports a vehicle to you."), + commandData("warpinveh", warpIntoVehicleCommand, "[vehicle id]", getStaffFlagValue("ManageVehicles"), true, false), commandData("returnplr", returnPlayerCommand, "", getStaffFlagValue("BasicModeration"), true, true, "Returns a player to their previous position."), commandData("gotopos", gotoPositionCommand, " [int] [vw]", getStaffFlagValue("BasicModeration"), true, true, "Teleports you to specific coordinates with optional interior and dimension."), commandData("gotoveh", gotoVehicleCommand, "", getStaffFlagValue("BasicModeration"), true, true, "Teleports you to a vehicle by ID."), @@ -444,6 +460,7 @@ function loadCommands() { commandData("addveh", createVehicleCommand, "", getStaffFlagValue("ManageVehicles"), true, false), commandData("tempveh", createTemporaryVehicleCommand, "", getStaffFlagValue("ManageVehicles"), true, false), commandData("delveh", deleteVehicleCommand, "", getStaffFlagValue("ManageVehicles"), true, false), + commandData("nearveh", getNearbyVehiclesCommand, "", getStaffFlagValue("None"), true, false), commandData("oldveh", getLastVehicleInfoCommand, "", getStaffFlagValue("None"), true, false), commandData("lastveh", getLastVehicleInfoCommand, "", getStaffFlagValue("None"), true, false),