From f103c2e3e28b67f186290d1a41f83cabe3751d3a Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 11 Apr 2021 23:13:29 +0200 Subject: [PATCH] [HOTFIX] WT for all when started, not loaded --- ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs b/ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs index 096e59de..e2aa0781 100644 --- a/ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs +++ b/ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs @@ -18,7 +18,15 @@ namespace ReallifeGamemode.Server.WeaponDeal public static bool checkWeaponDbyVehicle(Vehicle vehicle) { if (!vehicle.HasData("WeaponDealLoad") || vehicle.GetData("WeaponDealLoad") == false) + { return false; + } + + + if(!vehicle.HasData("weaponDeal") || vehicle.GetData("weapionDeal") == false) + { + return false; + } return true; }