diff --git a/RageCoop.Client/Util/VehicleExtensions.cs b/RageCoop.Client/Util/VehicleExtensions.cs index 7b10915..ddd0e62 100644 --- a/RageCoop.Client/Util/VehicleExtensions.cs +++ b/RageCoop.Client/Util/VehicleExtensions.cs @@ -81,24 +81,6 @@ namespace RageCoop.Client return flags; } - - public static Dictionary GetWeaponComponents(this Weapon weapon) - { - Dictionary result = null; - - if (weapon.Components.Count > 0) - { - result = new Dictionary(); - - foreach (var comp in weapon.Components) - { - result.Add((uint)comp.ComponentHash, comp.Active); - } - } - - return result; - } - public static Dictionary GetVehicleMods(this VehicleModCollection mods) { Dictionary result = new Dictionary(); diff --git a/RageCoop.Client/Util/WeaponUtil.cs b/RageCoop.Client/Util/WeaponUtil.cs index cd65045..7724230 100644 --- a/RageCoop.Client/Util/WeaponUtil.cs +++ b/RageCoop.Client/Util/WeaponUtil.cs @@ -21,6 +21,23 @@ namespace RageCoop.Client } internal static class WeaponUtil { + public static Dictionary GetWeaponComponents(this Weapon weapon) + { + Dictionary result = null; + + if (weapon.Components.Count > 0) + { + result = new Dictionary(); + + foreach (var comp in weapon.Components) + { + result.Add((uint)comp.ComponentHash, comp.Active); + } + } + + return result; + } + public static Vector3 GetMuzzlePosition(this Ped p) { var w = p.Weapons.CurrentWeaponObject;