Use locale string for invalid skin with NPC cmd
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user