From 503a9e8c4d4dbece166f6b413783283445f1a576 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 22 May 2022 13:31:55 -0500 Subject: [PATCH] Add NPC info, name, and look at plr cmds --- scripts/server/command.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/server/command.js b/scripts/server/command.js index 88d0a7bb..c4d5ddee 100644 --- a/scripts/server/command.js +++ b/scripts/server/command.js @@ -411,8 +411,10 @@ function loadCommands() { npc: [ new CommandData("addnpc", createNPCCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Creates an NPC with the specified skin"), new CommandData("delnpc", deleteNPCCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Deletes the nearest NPC"), - //new CommandData("npcinfo", getNPCInfoCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Shows info about the nearest NPC"), + new CommandData("npcinfo", getNPCInfoCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Shows info about the nearest NPC"), new CommandData("npcanim", setNPCAnimationCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Plays the specified animation on the nearest NPC"), + new CommandData("npcname", setNPCNameCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Sets the name of the nearest NPC"), + new CommandData("npclookatplr", toggleNPCLookAtClosestPlayerCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Makes the NPC look at the closest player"), //new CommandData("npcrespawnall", respawnAllNPCsCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Respawns all NPCs"), //new CommandData("npcrespawn", respawnNPCCommand, "", getStaffFlagValue("ManageNPCs"), true, false, "Respawns the nearest NPC"), ], @@ -523,6 +525,8 @@ function loadCommands() { utilities: [], vehicle: [ new CommandData("addveh", createVehicleCommand, "", getStaffFlagValue("ManageVehicles"), true, false), + //new CommandData("spawnveh", createVehicleCommand, "", getStaffFlagValue("ManageVehicles"), true, false), + //new CommandData("createveh", createVehicleCommand, "", getStaffFlagValue("ManageVehicles"), true, false), new CommandData("tempveh", createTemporaryVehicleCommand, "", getStaffFlagValue("ManageVehicles"), true, false), new CommandData("delveh", deleteVehicleCommand, "", getStaffFlagValue("ManageVehicles"), true, false), new CommandData("nearveh", getNearbyVehiclesCommand, "", getStaffFlagValue("None"), true, false),