Use locale string for invalid skin with NPC cmd

This commit is contained in:
Vortrex
2022-04-12 06:31:04 -05:00
parent 7aacf876da
commit f0a39d7679
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}
// ===========================================================================

View File

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