From 8ad5c4fff4b173f180085eec9245529a829e5b72 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 9 Mar 2022 05:17:53 -0600 Subject: [PATCH] Use ped ID in stop anim func --- scripts/server/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/server/client.js b/scripts/server/client.js index 36e477c8..ba41871d 100644 --- a/scripts/server/client.js +++ b/scripts/server/client.js @@ -1014,8 +1014,8 @@ function makePedPlayAnimation(ped, animationSlot, positionOffset) { // =========================================================================== -function makePedStopAnimation(ped) { - sendNetworkEventToPlayer("vrr.pedStopAnim", null, ped.id); +function makePedStopAnimation(pedId) { + sendNetworkEventToPlayer("vrr.pedStopAnim", null, pedId); } // =========================================================================== @@ -1145,13 +1145,13 @@ function sendAllHousesToPlayer(client) { // ========================================================================== function makePlayerHoldObjectModel(client, modelIndex) { - sendNetworkEventToPlayer("vrr.holdObject", client, getPlayerData(client).pedId, modelIndex); + sendNetworkEventToPlayer("vrr.holdObject", client, getPlayerData(client).ped, modelIndex); } // ========================================================================== function receivePlayerPedNetworkId(client, pedId) { - getPlayerData(client).pedId = pedId; + getPlayerData(client).ped = pedId; } // ==========================================================================