diff --git a/ReallifeGamemode.Client/index.ts b/ReallifeGamemode.Client/index.ts index 13655480..ad9d1d4a 100644 --- a/ReallifeGamemode.Client/index.ts +++ b/ReallifeGamemode.Client/index.ts @@ -194,6 +194,9 @@ PilotRouteList(globalData); import gangwarHandle from './util/Gangwar'; gangwarHandle(globalData); +import weapondamageUtil from './util/weapondamage'; +weapondamageUtil(); + import clotheShopList from './Interaction/clothes/ClotheShop'; clotheShopList(globalData); @@ -206,9 +209,6 @@ taximeterInput(globalData); import refuseCollector from './Jobs/RefuseCollector'; refuseCollector(); -import weapondamage from './util/weapondamage'; -weapondamage(); - require('./Gui/policedepartment'); interface VehicleData { diff --git a/ReallifeGamemode.Client/util/weapondamage.ts b/ReallifeGamemode.Client/util/weapondamage.ts index aff52327..dee90bea 100644 --- a/ReallifeGamemode.Client/util/weapondamage.ts +++ b/ReallifeGamemode.Client/util/weapondamage.ts @@ -1,4 +1,4 @@ -export default function weapondamage() { +export default function weapondamageUtil() { mp.events.add('SERVER:WeaponModifier', (player) => { //mp.gui.chat.push("Modifier steht jetzt auf" + modifier); //mp.players.local.setWeaponDamageModifier(modifier);