[HOTFIX] WT for all when started, not loaded

This commit is contained in:
hydrant
2021-04-11 23:13:29 +02:00
parent a961ce1904
commit f103c2e3e2

View File

@@ -18,7 +18,15 @@ namespace ReallifeGamemode.Server.WeaponDeal
public static bool checkWeaponDbyVehicle(Vehicle vehicle)
{
if (!vehicle.HasData("WeaponDealLoad") || vehicle.GetData<bool>("WeaponDealLoad") == false)
{
return false;
}
if(!vehicle.HasData("weaponDeal") || vehicle.GetData<bool>("weapionDeal") == false)
{
return false;
}
return true;
}