diff --git a/scripts/server/native/connected.js b/scripts/server/native/connected.js index c0e3bf06..94760c82 100644 --- a/scripts/server/native/connected.js +++ b/scripts/server/native/connected.js @@ -515,7 +515,8 @@ function repairVehicle(vehicle) { // =========================================================================== function setVehicleLights(vehicle, lights) { - vehicle.lights = lights; + setEntityData(vehicle, "vrr.lights", lights, true); + sendNetworkEventToPlayer("vrr.veh.lights", null, vehicle.id, lights); } // =========================================================================== @@ -1196,4 +1197,13 @@ function getGame() { return server.game; } +// =========================================================================== + +function getCountryNameFromIP(ip) { + if(module.geoip.getCountryName(ip)) { + return module.geoip.getCountryName(ip); + } + return false; +} + // =========================================================================== \ No newline at end of file