Couple of fixes to connected natives
This commit is contained in:
@@ -621,7 +621,7 @@ function createGameVehicle(modelIndex, position, heading, toClient = null) {
|
|||||||
|
|
||||||
function createGameCivilian(modelIndex, position, heading, toClient = null) {
|
function createGameCivilian(modelIndex, position, heading, toClient = null) {
|
||||||
if(areServerElementsSupported()) {
|
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)) {
|
if(!isNull(civilian)) {
|
||||||
civilian.position = position;
|
civilian.position = position;
|
||||||
civilian.heading = heading;
|
civilian.heading = heading;
|
||||||
@@ -1031,7 +1031,7 @@ function getPlayerPing(client) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function setVehicleHealth(vehicle, health) {
|
function setVehicleHealth(vehicle, health) {
|
||||||
vehicle.health = 1000;
|
vehicle.health = health;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user