From 8f4b94657ce13f60ea41253f466940cf0d3ec71f Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 28 Nov 2021 22:46:17 -0600 Subject: [PATCH] Rename and add a few admin cmds --- scripts/server/command.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/server/command.js b/scripts/server/command.js index 6d40d1cc..fc4444f2 100644 --- a/scripts/server/command.js +++ b/scripts/server/command.js @@ -396,6 +396,7 @@ function loadCommands() { commandData("radiostation", playStreamingRadioCommand, "", getStaffFlagValue("None"), true, false, "Plays a radio station in your vehicle, house, or business (depending on which one you're in)"), commandData("radiostations", showRadioStationListCommand, "", getStaffFlagValue("None"), true, false, "Shows a list of all available radio stations"), commandData("radiovolume", setStreamingRadioVolumeCommand, "", getStaffFlagValue("None"), true, false, "Sets the radio streaming volume (for your game only)."), + commandData("radioreloadall", reloadAllRadioStationsCommand, "", getStaffFlagValue("ManageServer"), true, false, "Reloads all radio stations from database (use after making changes)"), ], security: [], startup: [], @@ -441,10 +442,11 @@ function loadCommands() { commandData("vehjob", setVehicleJobCommand, "[job id/name]", getStaffFlagValue("ManageVehicles"), true, true), commandData("vehdelowner", removeVehicleOwnerCommand, "", getStaffFlagValue("ManageVehicles"), true, true), commandData("vehrank", setVehicleRankCommand, "", getStaffFlagValue("None"), true, true), - commandData("vehinfo", getVehicleInfoCommand, "", getStaffFlagValue("None"), true, true), commandData("vehpark", toggleVehicleSpawnLockCommand, "", getStaffFlagValue("ManageVehicles"), true, true), + commandData("vehrespawnall", respawnAllVehiclesCommand, "", getStaffFlagValue("ManageVehicles"), true, true), + commandData("vehrespawnempty", respawnEmptyVehiclesCommand, "", getStaffFlagValue("ManageVehicles"), true, true), commandData("vehreloadall", reloadAllVehiclesCommand, "", getStaffFlagValue("ManageVehicles"), true, true), commandData("vehrent", rentVehicleCommand, "", getStaffFlagValue("None"), true, true), @@ -452,9 +454,9 @@ function loadCommands() { commandData("vehbuyprice", setVehicleBuyPriceCommand, "", getStaffFlagValue("None"), true, true), commandData("stoprent", stopRentingVehicleCommand, "", getStaffFlagValue("None"), true, true), commandData("vehbuy", buyVehicleCommand, "", getStaffFlagValue("None"), true, true), - commandData("vehcolour", vehicleColourCommand, " ", getStaffFlagValue("None"), true, true), - commandData("vehlivery", vehicleLiveryCommand, "", getStaffFlagValue("None"), true, true), - commandData("vehrepair", vehicleRepairCommand, "", getStaffFlagValue("None"), true, true), + commandData("vehcolour", vehicleAdminColourCommand, " ", getStaffFlagValue("None"), true, true), + commandData("vehlivery", vehicleAdminLiveryCommand, "", getStaffFlagValue("None"), true, true), + commandData("vehrepair", vehicleAdminRepairCommand, "", getStaffFlagValue("None"), true, true), commandData("passenger", enterVehicleAsPassengerCommand, "", getStaffFlagValue("None"), true, true), ], };