From f0a39d7679bb0438918bfaae094adae7649bc598 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 12 Apr 2022 06:31:04 -0500 Subject: [PATCH] Use locale string for invalid skin with NPC cmd --- scripts/server/client.js | 4 ++-- scripts/server/npc.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/server/client.js b/scripts/server/client.js index 0dc7e1e9..8e2251a4 100644 --- a/scripts/server/client.js +++ b/scripts/server/client.js @@ -1023,9 +1023,9 @@ function makePedPlayAnimation(ped, animationSlot, positionOffset) { // =========================================================================== -function makePedStopAnimation(pedId) { +function makePedStopAnimation(ped) { removeEntityData(ped, "vrr.animation"); - sendNetworkEventToPlayer("vrr.pedStopAnim", null, pedId); + sendNetworkEventToPlayer("vrr.pedStopAnim", null, ped.id); } // =========================================================================== diff --git a/scripts/server/npc.js b/scripts/server/npc.js index 33a65dce..b43d749b 100644 --- a/scripts/server/npc.js +++ b/scripts/server/npc.js @@ -40,7 +40,7 @@ function createNPCCommand(client, command, params) { let skinId = getSkinModelIndexFromParams(params); if(!skinId) { - messagePlayerError(client, `Invalid skin`); + messagePlayerError(client, getLocaleString(client, "InvalidSkin")); return false; }