/// <summary> /// Get all compatible upgrades for this vehicle /// </summary> /// <returns></returns> public Upgrade[] GetCompatibleUpgrades() { int[] upInts = MtaShared.GetArrayFromTable(MtaShared.GetVehicleCompatibleUpgrades(element, -1), "System.Int32"); Upgrade[] upgrades = new Upgrade[upInts.Length]; for (int i = 0; i < upInts.Length; i++) { upgrades[i] = (Upgrade)upInts[i]; } return(upgrades); }