From 09d4ca8ed1540a069eb9332f55af50451a892aca Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 19 May 2022 19:16:37 -0500 Subject: [PATCH] Couple of fixes to connected natives --- scripts/server/native/connected.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/native/connected.js b/scripts/server/native/connected.js index d9cf87c0..59c7ba55 100644 --- a/scripts/server/native/connected.js +++ b/scripts/server/native/connected.js @@ -621,7 +621,7 @@ function createGameVehicle(modelIndex, position, heading, toClient = null) { function createGameCivilian(modelIndex, position, heading, toClient = null) { if(areServerElementsSupported()) { - let civilian = game.createCivilian(getGameConfig().skins[getGame()][modelIndex][0], 0); + let civilian = game.createCivilian(getGameConfig().skins[getGame()][modelIndex][1], 0); if(!isNull(civilian)) { civilian.position = position; civilian.heading = heading; @@ -1031,7 +1031,7 @@ function getPlayerPing(client) { // =========================================================================== function setVehicleHealth(vehicle, health) { - vehicle.health = 1000; + vehicle.health = health; } // ===========================================================================