Add bizjob and bizdelowner cmds, fix admin veh cmds

This commit is contained in:
Vortrex
2022-01-19 12:58:47 -06:00
parent 62efe28936
commit 7fb7063332

View File

@@ -109,8 +109,9 @@ function loadCommands() {
commandData("bizitemprice", setBusinessItemSellPriceCommand, "<item slot> <sell price>", getStaffFlagValue("None"), true, true, "Sets the purchase price of a business item"),
commandData("bizname", setBusinessNameCommand, "<name>", getStaffFlagValue("None"), true, true, "Changes a business name"),
commandData("bizowner", setBusinessOwnerCommand, "<player name/id>", getStaffFlagValue("None"), true, true, "Changes the owner of a business"),
commandData("bizdelowner", removeBusinessOwnerCommand, "", getStaffFlagValue("ManageBusinesses"), true, true, "Removes the owner of a business"),
commandData("bizpublic", setBusinessPublicCommand, "", getStaffFlagValue("ManageBusinesses"), true, true, "Changes a business to public (city hall, govt buildings, etc)"),
commandData("bizpublic", setBusinessJobCommand, "", getStaffFlagValue("ManageBusinesses"), true, true, "Changes the owner of a business to a job"),
commandData("bizjob", setBusinessJobCommand, "", getStaffFlagValue("ManageBusinesses"), true, true, "Changes the owner of a business to a job"),
commandData("bizrank", setBusinessRankCommand, "", getStaffFlagValue("None"), true, true, "Changes the job/clan rank required to use the business"),
commandData("bizclan", setBusinessClanCommand, "", getStaffFlagValue("None"), true, true, "Changes the owner of a business to a clan"),
commandData("bizbuyprice", setBusinessBuyPriceCommand, "<amount>", getStaffFlagValue("None"), true, true, "Changes the price to buy the business"),
@@ -473,9 +474,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", vehicleAdminColourCommand, "<colour1> <colour2>", getStaffFlagValue("None"), true, true),
commandData("vehlivery", vehicleAdminLiveryCommand, "<livery id>", getStaffFlagValue("None"), true, true),
commandData("vehrepair", vehicleAdminRepairCommand, "", getStaffFlagValue("None"), true, true),
commandData("vehcolour", vehicleAdminColourCommand, "<colour1> <colour2>", getStaffFlagValue("ManageVehicles"), true, true),
commandData("vehlivery", vehicleAdminLiveryCommand, "<livery id>", getStaffFlagValue("ManageVehicles"), true, true),
commandData("vehrepair", vehicleAdminRepairCommand, "", getStaffFlagValue("ManageVehicles"), true, true),
commandData("passenger", enterVehicleAsPassengerCommand, "", getStaffFlagValue("None"), true, true),
],
};