Use ped ID in stop anim func

This commit is contained in:
Vortrex
2022-03-09 05:17:53 -06:00
parent e371df54b9
commit 8ad5c4fff4

View File

@@ -1014,8 +1014,8 @@ function makePedPlayAnimation(ped, animationSlot, positionOffset) {
// =========================================================================== // ===========================================================================
function makePedStopAnimation(ped) { function makePedStopAnimation(pedId) {
sendNetworkEventToPlayer("vrr.pedStopAnim", null, ped.id); sendNetworkEventToPlayer("vrr.pedStopAnim", null, pedId);
} }
// =========================================================================== // ===========================================================================
@@ -1145,13 +1145,13 @@ function sendAllHousesToPlayer(client) {
// ========================================================================== // ==========================================================================
function makePlayerHoldObjectModel(client, modelIndex) { function makePlayerHoldObjectModel(client, modelIndex) {
sendNetworkEventToPlayer("vrr.holdObject", client, getPlayerData(client).pedId, modelIndex); sendNetworkEventToPlayer("vrr.holdObject", client, getPlayerData(client).ped, modelIndex);
} }
// ========================================================================== // ==========================================================================
function receivePlayerPedNetworkId(client, pedId) { function receivePlayerPedNetworkId(client, pedId) {
getPlayerData(client).pedId = pedId; getPlayerData(client).ped = pedId;
} }
// ========================================================================== // ==========================================================================