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; }