GeoIP util and fix veh lights
This commit is contained in:
@@ -515,7 +515,8 @@ function repairVehicle(vehicle) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function setVehicleLights(vehicle, lights) {
|
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;
|
return server.game;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function getCountryNameFromIP(ip) {
|
||||||
|
if(module.geoip.getCountryName(ip)) {
|
||||||
|
return module.geoip.getCountryName(ip);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user